#2D39B7#2D39B7

#2D39B7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.195 H 270.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#2D39B7
RGBrgb(45, 57, 183)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 75%, 72%)
CMYKcmyk(75.4%, 68.9%, 0%, 28.2%)
CIE-LABlab(31.58, 39.22, -67.53)
CIE-LCHlch(31.58, 78.09, 300.15°)
OKLaboklab(42.62% 0.0027 -0.1954)
OKLCHoklch(42.62% 0.195 270.8)
XYZxyz(11.0896, 6.9019, 45.5383)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39B7 #B7AB2D
analogous
#2D7EB7 #2D39B7 #662DB7
triadic
#2D39B7 #B72D39 #39B72D
tetradic
#2D39B7 #B72D7E #B7AB2D #2DB766
square
#2D39B7 #B72D7E #B7AB2D #2DB766
split-complementary
#2D39B7 #B7662D #7EB72D
monochromatic
#151A55 #212A86 #2D39B7 #4E59D3 #7F87DF

Accessibility & contrast

On white

8.82
#2D39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2D39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39B7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39B7#FFFFFF#000000##FFFFFF
##2D39B71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d39b7;
/* rgb */ color: rgb(45, 57, 183);
/* oklch */ color: oklch(42.6% 0.195 270.8);
Tailwind
colors: {
  custom: {
    50: '#7c70ce',
    500: '#2d39b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d39b7;
$custom-light: #7c70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39b7",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 234.783,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.19543,
    "h": 270.8
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#2D39B7
secondary
#C8C178
accent
#D644E4
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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