#2C2170#2C2170

#2C2170 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.130 H 282.4°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2C2170
RGBrgb(44, 33, 112)
HSLhsl(248, 54%, 28%)
HSVhsv(248, 71%, 44%)
CMYKcmyk(60.7%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.19, 29.27, -44.04)
CIE-LCHlch(19.19, 52.88, 303.61°)
OKLaboklab(31.59% 0.0278 -0.1267)
OKLCHoklch(31.59% 0.13 282.4)
XYZxyz(4.5063, 2.7927, 15.6277)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2170 #657021
analogous
#213D70 #2C2170 #532170
triadic
#2C2170 #702C21 #21702C
tetradic
#2C2170 #70213D #657021 #217053
square
#2C2170 #70213D #657021 #217053
split-complementary
#2C2170 #705321 #3D7021
monochromatic
#090718 #191341 #2C2170 #3F2F9F #5644C8

Accessibility & contrast

On white

13.47
#2C2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2170
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2170#FFFFFF#000000##FFFFFF
##2C21701.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#053545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c2170;
/* rgb */ color: rgb(44, 33, 112);
/* oklch */ color: oklch(31.6% 0.130 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d5d9a',
    500: '#2c2170',
    950: '#000000',
  },
}
SCSS
$custom: #2c2170;
$custom-light: #6d5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2170",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 248.354,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31589,
    "c": 0.12973,
    "h": 282.4
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2C2170
secondary
#97A449
accent
#DE4AC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C2170

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2C2170 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva