#2C2388#2C2388

#2C2388 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.159 H 277.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2C2388
RGBrgb(44, 35, 136)
HSLhsl(245, 59%, 34%)
HSVhsv(245, 74%, 53%)
CMYKcmyk(67.6%, 74.3%, 0%, 46.7%)
CIE-LABlab(22.00, 36.21, -54.70)
CIE-LCHlch(22.00, 65.60, 303.50°)
OKLaboklab(34.32% 0.0218 -0.158)
OKLCHoklch(34.32% 0.159 277.9)
XYZxyz(6.0822, 3.5146, 23.6456)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2388 #7F8823
analogous
#234C88 #2C2388 #5E2388
triadic
#2C2388 #882C23 #23882C
tetradic
#2C2388 #88234C #7F8823 #23885E
square
#2C2388 #88234C #7F8823 #23885E
split-complementary
#2C2388 #885E23 #4C8823
monochromatic
#0D0A27 #1C1657 #2C2388 #3C30B9 #5E53D3

Accessibility & contrast

On white

12.33
#2C2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2388
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2388#FFFFFF#000000##FFFFFF
##2C23881.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2388;
/* rgb */ color: rgb(44, 35, 136);
/* oklch */ color: oklch(34.3% 0.159 277.9);
Tailwind
colors: {
  custom: {
    50: '#725fac',
    500: '#2c2388',
    950: '#000000',
  },
}
SCSS
$custom: #2c2388;
$custom-light: #725fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2388",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 245.347,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.15945,
    "h": 277.9
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2388

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

Preview Lab → · Contrast checker → · Palette generator →

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