#2D39A8#2D39A8

#2D39A8 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.176 H 271.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2D39A8
RGBrgb(45, 57, 168)
HSLhsl(234, 58%, 42%)
HSVhsv(234, 73%, 66%)
CMYKcmyk(73.2%, 66.1%, 0%, 34.1%)
CIE-LABlab(30.18, 33.88, -60.88)
CIE-LCHlch(30.18, 69.67, 299.10°)
OKLaboklab(41.18% 0.0041 -0.176)
OKLCHoklch(41.18% 0.176 271.3)
XYZxyz(9.6108, 6.3103, 37.7497)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39A8 #A89C2D
analogous
#2D77A8 #2D39A8 #5F2DA8
triadic
#2D39A8 #A82D39 #39A82D
tetradic
#2D39A8 #A82D77 #A89C2D #2DA85F
square
#2D39A8 #A82D77 #A89C2D #2DA85F
split-complementary
#2D39A8 #A85F2D #77A82D
monochromatic
#131847 #202978 #2D39A8 #4552CD #757FDA

Accessibility & contrast

On white

9.28
#2D39A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2D39A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39A8
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39A8#FFFFFF#000000##FFFFFF
##2D39A81.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d39a8;
/* rgb */ color: rgb(45, 57, 168);
/* oklch */ color: oklch(41.2% 0.176 271.3);
Tailwind
colors: {
  custom: {
    50: '#786fc3',
    500: '#2d39a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d39a8;
$custom-light: #786fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39a8",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 168
  },
  "hsl": {
    "h": 234.146,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41178,
    "c": 0.17602,
    "h": 271.3
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#2D39A8
secondary
#C2BA6F
accent
#D247E1
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2D39A8

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

Preview Lab → · Contrast checker → · Palette generator →

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