#2D39B2#2D39B2

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

Color values

HEX#2D39B2
RGBrgb(45, 57, 178)
HSLhsl(235, 60%, 44%)
HSVhsv(235, 75%, 70%)
CMYKcmyk(74.7%, 68%, 0%, 30.2%)
CIE-LABlab(31.11, 37.46, -65.34)
CIE-LCHlch(31.11, 75.31, 299.83°)
OKLaboklab(42.13% 0.0032 -0.189)
OKLCHoklch(42.13% 0.189 271)
XYZxyz(10.5785, 6.6974, 42.8461)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39B2 #B2A62D
analogous
#2D7BB2 #2D39B2 #632DB2
triadic
#2D39B2 #B22D39 #39B22D
tetradic
#2D39B2 #B22D7B #B2A62D #2DB263
square
#2D39B2 #B22D7B #B2A62D #2DB263
split-complementary
#2D39B2 #B2632D #7BB22D
monochromatic
#141A50 #212981 #2D39B2 #4B57D1 #7C84DE

Accessibility & contrast

On white

8.98
#2D39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39B2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39B2#FFFFFF#000000##FFFFFF
##2D39B21.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d39b2;
/* rgb */ color: rgb(45, 57, 178);
/* oklch */ color: oklch(42.1% 0.189 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b70ca',
    500: '#2d39b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d39b2;
$custom-light: #7b70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39b2",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 234.586,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.18905,
    "h": 271
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#2D39B2
secondary
#C6BF75
accent
#D545E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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