#2D39A4#2D39A4

#2D39A4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.171 H 271.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2D39A4
RGBrgb(45, 57, 164)
HSLhsl(234, 57%, 41%)
HSVhsv(234, 73%, 64%)
CMYKcmyk(72.6%, 65.2%, 0%, 35.7%)
CIE-LABlab(29.82, 32.43, -59.06)
CIE-LCHlch(29.82, 67.38, 298.77°)
OKLaboklab(40.8% 0.0043 -0.1706)
OKLCHoklch(40.8% 0.171 271.5)
XYZxyz(9.2439, 6.1635, 35.8173)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39A4 #A4982D
analogous
#2D74A4 #2D39A4 #5C2DA4
triadic
#2D39A4 #A42D39 #39A42D
tetradic
#2D39A4 #A42D74 #A4982D #2DA45C
square
#2D39A4 #A42D74 #A4982D #2DA45C
split-complementary
#2D39A4 #A45C2D #74A42D
monochromatic
#131844 #202874 #2D39A4 #4351CB #737DD9

Accessibility & contrast

On white

9.41
#2D39A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2D39A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39A4
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39A4#FFFFFF#000000##FFFFFF
##2D39A41.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d39a4;
/* rgb */ color: rgb(45, 57, 164);
/* oklch */ color: oklch(40.8% 0.171 271.5);
Tailwind
colors: {
  custom: {
    50: '#776fc0',
    500: '#2d39a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d39a4;
$custom-light: #776fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39a4",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 233.95,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40803,
    "c": 0.1707,
    "h": 271.5
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#2D39A4
secondary
#C0B86D
accent
#D148E0
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D39A4

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

Preview Lab → · Contrast checker → · Palette generator →

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