#2C2387#2C2387

#2C2387 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 278.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2C2387
RGBrgb(44, 35, 135)
HSLhsl(245, 59%, 33%)
HSVhsv(245, 74%, 53%)
CMYKcmyk(67.4%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.89, 35.87, -54.24)
CIE-LCHlch(21.89, 65.03, 303.48°)
OKLaboklab(34.21% 0.022 -0.1566)
OKLCHoklch(34.21% 0.158 278)
XYZxyz(6.0115, 3.4863, 23.2731)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2387 #7E8723
analogous
#234C87 #2C2387 #5E2387
triadic
#2C2387 #872C23 #23872C
tetradic
#2C2387 #87234C #7E8723 #23875E
square
#2C2387 #87234C #7E8723 #23875E
split-complementary
#2C2387 #875E23 #4C8723
monochromatic
#0C0A26 #1C1656 #2C2387 #3C30B8 #5E52D2

Accessibility & contrast

On white

12.37
#2C2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2387
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2387#FFFFFF#000000##FFFFFF
##2C23871.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2387;
/* rgb */ color: rgb(44, 35, 135);
/* oklch */ color: oklch(34.2% 0.158 278.0);
Tailwind
colors: {
  custom: {
    50: '#725fab',
    500: '#2c2387',
    950: '#000000',
  },
}
SCSS
$custom: #2c2387;
$custom-light: #725fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2387",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 245.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.15815,
    "h": 278
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#2C2387
secondary
#ADB650
accent
#E246D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2387

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

Preview Lab → · Contrast checker → · Palette generator →

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