#2F39B7#2F39B7

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

Color values

HEX#2F39B7
RGBrgb(47, 57, 183)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(74.3%, 68.9%, 0%, 28.2%)
CIE-LABlab(31.69, 39.43, -67.35)
CIE-LCHlch(31.69, 78.04, 300.35°)
OKLaboklab(42.73% 0.0048 -0.1948)
OKLCHoklch(42.73% 0.195 271.4)
XYZxyz(11.1798, 6.9483, 45.5425)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B7 #B7AD2F
analogous
#2F7DB7 #2F39B7 #692FB7
triadic
#2F39B7 #B72F39 #39B72F
tetradic
#2F39B7 #B72F7D #B7AD2F #2FB769
square
#2F39B7 #B72F7D #B7AD2F #2FB769
split-complementary
#2F39B7 #B7692F #7DB72F
monochromatic
#161B56 #222A86 #2F39B7 #515AD2 #8288DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F39B7#FFFFFF#000000##FFFFFF
##2F39B71.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)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f39b7;
/* rgb */ color: rgb(47, 57, 183);
/* oklch */ color: oklch(42.7% 0.195 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d70ce',
    500: '#2f39b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b7;
$custom-light: #7d70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b7",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 235.588,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.19491,
    "h": 271.4
  },
  "luminance": 0.06949
}

Semantic roles & 50–950 ramp

primary
#2F39B7
secondary
#C8C27A
accent
#D745E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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