#2D39B1#2D39B1

#2D39B1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.188 H 271.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2D39B1
RGBrgb(45, 57, 177)
HSLhsl(235, 59%, 44%)
HSVhsv(235, 75%, 69%)
CMYKcmyk(74.6%, 67.8%, 0%, 30.6%)
CIE-LABlab(31.01, 37.10, -64.90)
CIE-LCHlch(31.01, 74.75, 299.76°)
OKLaboklab(42.04% 0.0033 -0.1877)
OKLCHoklch(42.04% 0.188 271)
XYZxyz(10.4784, 6.6574, 42.3192)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39B1 #B1A52D
analogous
#2D7BB1 #2D39B1 #632DB1
triadic
#2D39B1 #B12D39 #39B12D
tetradic
#2D39B1 #B12D7B #B1A52D #2DB163
square
#2D39B1 #B12D7B #B1A52D #2DB163
split-complementary
#2D39B1 #B1632D #7BB12D
monochromatic
#141A4F #212980 #2D39B1 #4A56D1 #7B84DD

Accessibility & contrast

On white

9.01
#2D39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2D39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39B1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39B1#FFFFFF#000000##FFFFFF
##2D39B11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d39b1;
/* rgb */ color: rgb(45, 57, 177);
/* oklch */ color: oklch(42.0% 0.188 271.0);
Tailwind
colors: {
  custom: {
    50: '#7a70c9',
    500: '#2d39b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d39b1;
$custom-light: #7a70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39b1",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 234.545,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.18776,
    "h": 271
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

primary
#2D39B1
secondary
#C6BE74
accent
#D445E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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