#2D39B8#2D39B8

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

Color values

HEX#2D39B8
RGBrgb(45, 57, 184)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 76%, 72%)
CMYKcmyk(75.5%, 69%, 0%, 27.8%)
CIE-LABlab(31.68, 39.58, -67.96)
CIE-LCHlch(31.68, 78.65, 300.21°)
OKLaboklab(42.72% 0.0026 -0.1967)
OKLCHoklch(42.72% 0.197 270.8)
XYZxyz(11.1941, 6.9436, 46.0884)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D39B8 #B8AC2D
analogous
#2D7FB8 #2D39B8 #662DB8
triadic
#2D39B8 #B82D39 #39B82D
tetradic
#2D39B8 #B82D7F #B8AC2D #2DB866
square
#2D39B8 #B82D7F #B8AC2D #2DB866
split-complementary
#2D39B8 #B8662D #7FB82D
monochromatic
#151B56 #212A87 #2D39B8 #4E5AD4 #8088E0

Accessibility & contrast

On white

8.79
#2D39B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D39B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D39B8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D39B8#FFFFFF#000000##FFFFFF
##2D39B81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d39b8;
/* rgb */ color: rgb(45, 57, 184);
/* oklch */ color: oklch(42.7% 0.197 270.8);
Tailwind
colors: {
  custom: {
    50: '#7c70ce',
    500: '#2d39b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d39b8;
$custom-light: #7c70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d39b8",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 234.82,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42721,
    "c": 0.1967,
    "h": 270.8
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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