#2C2189#2C2189

#2C2189 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.163 H 278.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2C2189
RGBrgb(44, 33, 137)
HSLhsl(246, 61%, 33%)
HSVhsv(246, 76%, 54%)
CMYKcmyk(67.9%, 75.9%, 0%, 46.3%)
CIE-LABlab(21.69, 37.71, -55.84)
CIE-LCHlch(21.69, 67.38, 304.03°)
OKLaboklab(34.13% 0.0229 -0.1613)
OKLCHoklch(34.13% 0.163 278.1)
XYZxyz(6.0965, 3.4288, 24.0026)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2189 #7E8921
analogous
#214A89 #2C2189 #602189
triadic
#2C2189 #892C21 #21892C
tetradic
#2C2189 #89214A #7E8921 #218960
square
#2C2189 #89214A #7E8921 #218960
split-complementary
#2C2189 #896021 #4A8921
monochromatic
#0C0926 #1C1558 #2C2189 #3C2DBA #5E50D5

Accessibility & contrast

On white

12.46
#2C2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2189
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2189#FFFFFF#000000##FFFFFF
##2C21891.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2189;
/* rgb */ color: rgb(44, 33, 137);
/* oklch */ color: oklch(34.1% 0.163 278.1);
Tailwind
colors: {
  custom: {
    50: '#735eac',
    500: '#2c2189',
    950: '#000000',
  },
}
SCSS
$custom: #2c2189;
$custom-light: #735eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2189",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 246.346,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34125,
    "c": 0.1629,
    "h": 278.1
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#2C2189
secondary
#ADB84E
accent
#E444D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2189

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

Preview Lab → · Contrast checker → · Palette generator →

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