#2F39B8#2F39B8

#2F39B8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.196 H 271.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2F39B8
RGBrgb(47, 57, 184)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(74.5%, 69%, 0%, 27.8%)
CIE-LABlab(31.78, 39.78, -67.78)
CIE-LCHlch(31.78, 78.59, 300.40°)
OKLaboklab(42.83% 0.0047 -0.1961)
OKLCHoklch(42.83% 0.196 271.4)
XYZxyz(11.2842, 6.9901, 46.0926)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B8 #B8AE2F
analogous
#2F7EB8 #2F39B8 #692FB8
triadic
#2F39B8 #B82F39 #39B82F
tetradic
#2F39B8 #B82F7E #B8AE2F #2FB869
square
#2F39B8 #B82F7E #B8AE2F #2FB869
split-complementary
#2F39B8 #B8692F #7EB82F
monochromatic
#161B57 #232A87 #2F39B8 #525BD3 #8289DF

Accessibility & contrast

On white

8.76
#2F39B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F39B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B8#FFFFFF#000000##FFFFFF
##2F39B81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.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: #2f39b8;
/* rgb */ color: rgb(47, 57, 184);
/* oklch */ color: oklch(42.8% 0.196 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d70ce',
    500: '#2f39b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b8;
$custom-light: #7d70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b8",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 235.62,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42826,
    "c": 0.19618,
    "h": 271.4
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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