#2C2185#2C2185

#2C2185 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.158 H 278.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2C2185
RGBrgb(44, 33, 133)
HSLhsl(247, 60%, 33%)
HSVhsv(247, 75%, 52%)
CMYKcmyk(66.9%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.27, 36.38, -54.02)
CIE-LCHlch(21.27, 65.13, 303.96°)
OKLaboklab(33.7% 0.0238 -0.156)
OKLCHoklch(33.7% 0.158 278.7)
XYZxyz(5.8148, 3.3162, 22.5194)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2185 #7A8521
analogous
#214885 #2C2185 #5E2185
triadic
#2C2185 #852C21 #21852C
tetradic
#2C2185 #852148 #7A8521 #21855E
square
#2C2185 #852148 #7A8521 #21855E
split-complementary
#2C2185 #855E21 #488521
monochromatic
#0C0923 #1C1554 #2C2185 #3C2DB6 #5C4DD3

Accessibility & contrast

On white

12.62
#2C2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2185
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2185#FFFFFF#000000##FFFFFF
##2C21851.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c2185;
/* rgb */ color: rgb(44, 33, 133);
/* oklch */ color: oklch(33.7% 0.158 278.7);
Tailwind
colors: {
  custom: {
    50: '#725eaa',
    500: '#2c2185',
    950: '#000000',
  },
}
SCSS
$custom: #2c2185;
$custom-light: #725eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2185",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 246.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33704,
    "c": 0.15776,
    "h": 278.7
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#2C2185
secondary
#AAB64C
accent
#E344D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2185

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

Preview Lab → · Contrast checker → · Palette generator →

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