#2D39AB#2D39AB

#2D39AB is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.180 H 271.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2D39AB
RGBrgb(45, 57, 171)
HSLhsl(234, 58%, 42%)
HSVhsv(234, 74%, 67%)
CMYKcmyk(73.7%, 66.7%, 0%, 32.9%)
CIE-LABlab(30.46, 34.96, -62.23)
CIE-LCHlch(30.46, 71.37, 299.33°)
OKLaboklab(41.46% 0.0038 -0.1799)
OKLCHoklch(41.46% 0.18 271.2)
XYZxyz(9.8935, 6.4234, 39.2386)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39AB #AB9F2D
analogous
#2D78AB #2D39AB #602DAB
triadic
#2D39AB #AB2D39 #39AB2D
tetradic
#2D39AB #AB2D78 #AB9F2D #2DAB60
square
#2D39AB #AB2D78 #AB9F2D #2DAB60
split-complementary
#2D39AB #AB602D #78AB2D
monochromatic
#14194A #20297B #2D39AB #4754CE #7781DB

Accessibility & contrast

On white

9.19
#2D39AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D39AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39AB
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39AB#FFFFFF#000000##FFFFFF
##2D39AB1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d39ab;
/* rgb */ color: rgb(45, 57, 171);
/* oklch */ color: oklch(41.5% 0.180 271.2);
Tailwind
colors: {
  custom: {
    50: '#796fc5',
    500: '#2d39ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d39ab;
$custom-light: #796fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39ab",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 234.286,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41462,
    "c": 0.17996,
    "h": 271.2
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#2D39AB
secondary
#C3BB71
accent
#D346E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2D39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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