#2F39B0#2F39B0

#2F39B0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.186 H 271.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F39B0
RGBrgb(47, 57, 176)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(73.3%, 67.6%, 0%, 31%)
CIE-LABlab(31.03, 36.96, -64.27)
CIE-LCHlch(31.03, 74.14, 299.90°)
OKLaboklab(42.05% 0.0055 -0.1859)
OKLCHoklch(42.05% 0.186 271.7)
XYZxyz(10.4692, 6.6641, 41.8004)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B0 #B0A62F
analogous
#2F79B0 #2F39B0 #652FB0
triadic
#2F39B0 #B02F39 #39B02F
tetradic
#2F39B0 #B02F79 #B0A62F #2FB065
square
#2F39B0 #B02F79 #B0A62F #2FB065
split-complementary
#2F39B0 #B0652F #79B02F
monochromatic
#151A4F #222980 #2F39B0 #4D57CF #7D84DC

Accessibility & contrast

On white

9.00
#2F39B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F39B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B0
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B0#FFFFFF#000000##FFFFFF
##2F39B01.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f39b0;
/* rgb */ color: rgb(47, 57, 176);
/* oklch */ color: oklch(42.0% 0.186 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b70c9',
    500: '#2f39b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b0;
$custom-light: #7b70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b0",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 235.349,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.18594,
    "h": 271.7
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#2F39B0
secondary
#C5BF76
accent
#D547E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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