#2D39A7#2D39A7

#2D39A7 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.175 H 271.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2D39A7
RGBrgb(45, 57, 167)
HSLhsl(234, 58%, 42%)
HSVhsv(234, 73%, 65%)
CMYKcmyk(73.1%, 65.9%, 0%, 34.5%)
CIE-LABlab(30.09, 33.52, -60.42)
CIE-LCHlch(30.09, 69.10, 299.02°)
OKLaboklab(41.08% 0.0041 -0.1746)
OKLCHoklch(41.08% 0.175 271.4)
XYZxyz(9.5180, 6.2732, 37.2610)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39A7 #A79B2D
analogous
#2D76A7 #2D39A7 #5E2DA7
triadic
#2D39A7 #A72D39 #39A72D
tetradic
#2D39A7 #A72D76 #A79B2D #2DA75E
square
#2D39A7 #A72D76 #A79B2D #2DA75E
split-complementary
#2D39A7 #A75E2D #76A72D
monochromatic
#131847 #202977 #2D39A7 #4452CD #757FDA

Accessibility & contrast

On white

9.31
#2D39A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2D39A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39A7
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39A7#FFFFFF#000000##FFFFFF
##2D39A71.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d39a7;
/* rgb */ color: rgb(45, 57, 167);
/* oklch */ color: oklch(41.1% 0.175 271.4);
Tailwind
colors: {
  custom: {
    50: '#786fc2',
    500: '#2d39a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d39a7;
$custom-light: #786fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39a7",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 167
  },
  "hsl": {
    "h": 234.098,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41084,
    "c": 0.1747,
    "h": 271.4
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

primary
#2D39A7
secondary
#C1B96E
accent
#D247E1
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D39A7

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

Preview Lab → · Contrast checker → · Palette generator →

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