#2D2387#2D2387

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

Color values

HEX#2D2387
RGBrgb(45, 35, 135)
HSLhsl(246, 59%, 33%)
HSVhsv(246, 74%, 53%)
CMYKcmyk(66.7%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.98, 36.00, -54.11)
CIE-LCHlch(21.98, 64.99, 303.64°)
OKLaboklab(34.29% 0.0234 -0.1562)
OKLCHoklch(34.29% 0.158 278.5)
XYZxyz(6.0550, 3.5087, 23.2751)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2387 #7D8723
analogous
#234B87 #2D2387 #5F2387
triadic
#2D2387 #872D23 #23872D
tetradic
#2D2387 #87234B #7D8723 #23875F
square
#2D2387 #87234B #7D8723 #23875F
split-complementary
#2D2387 #875F23 #4B8723
monochromatic
#0D0A26 #1D1656 #2D2387 #3D30B8 #5F52D2

Accessibility & contrast

On white

12.34
#2D2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2387
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2387#FFFFFF#000000##FFFFFF
##2D23871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2387;
/* rgb */ color: rgb(45, 35, 135);
/* oklch */ color: oklch(34.3% 0.158 278.5);
Tailwind
colors: {
  custom: {
    50: '#735fab',
    500: '#2d2387',
    950: '#000000',
  },
}
SCSS
$custom: #2d2387;
$custom-light: #735fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2387",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 246,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.15794,
    "h": 278.5
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#2D2387
secondary
#ACB650
accent
#E246D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2387

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

Preview Lab → · Contrast checker → · Palette generator →

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