#2D238B#2D238B

#2D238B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.163 H 278.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2D238B
RGBrgb(45, 35, 139)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(67.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.39, 37.34, -55.94)
CIE-LCHlch(22.39, 67.26, 303.73°)
OKLaboklab(34.7% 0.0226 -0.1615)
OKLCHoklch(34.7% 0.163 278)
XYZxyz(6.3419, 3.6235, 24.7863)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238B #818B23
analogous
#234D8B #2D238B #61238B
triadic
#2D238B #8B2D23 #238B2D
tetradic
#2D238B #8B234D #818B23 #238B61
square
#2D238B #8B234D #818B23 #238B61
split-complementary
#2D238B #8B6123 #4D8B23
monochromatic
#0D0A29 #1D175A #2D238B #3D2FBC #6154D4

Accessibility & contrast

On white

12.18
#2D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D238B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238B#FFFFFF#000000##FFFFFF
##2D238B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d238b;
/* rgb */ color: rgb(45, 35, 139);
/* oklch */ color: oklch(34.7% 0.163 278.0);
Tailwind
colors: {
  custom: {
    50: '#7460ae',
    500: '#2d238b',
    950: '#000000',
  },
}
SCSS
$custom: #2d238b;
$custom-light: #7460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238b",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 245.769,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.1631,
    "h": 278
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#2D238B
secondary
#AEB852
accent
#E345D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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