#2F39B1#2F39B1

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

Color values

HEX#2F39B1
RGBrgb(47, 57, 177)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(73.4%, 67.8%, 0%, 30.6%)
CIE-LABlab(31.12, 37.32, -64.71)
CIE-LCHlch(31.12, 74.70, 299.97°)
OKLaboklab(42.15% 0.0054 -0.1871)
OKLCHoklch(42.15% 0.187 271.7)
XYZxyz(10.5685, 6.7038, 42.3234)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B1 #B1A72F
analogous
#2F7AB1 #2F39B1 #662FB1
triadic
#2F39B1 #B12F39 #39B12F
tetradic
#2F39B1 #B12F7A #B1A72F #2FB166
square
#2F39B1 #B12F7A #B1A72F #2FB166
split-complementary
#2F39B1 #B1662F #7AB12F
monochromatic
#151A50 #222981 #2F39B1 #4D57D0 #7E85DD

Accessibility & contrast

On white

8.97
#2F39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B1#FFFFFF#000000##FFFFFF
##2F39B11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f39b1;
/* rgb */ color: rgb(47, 57, 177);
/* oklch */ color: oklch(42.1% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b70c9',
    500: '#2f39b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b1;
$custom-light: #7b70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b1",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 235.385,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42146,
    "c": 0.18723,
    "h": 271.7
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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