#2F39B3#2F39B3

#2F39B3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.190 H 271.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2F39B3
RGBrgb(47, 57, 179)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 74%, 70%)
CMYKcmyk(73.7%, 68.2%, 0%, 29.8%)
CIE-LABlab(31.31, 38.02, -65.60)
CIE-LCHlch(31.31, 75.82, 300.10°)
OKLaboklab(42.34% 0.0052 -0.1897)
OKLCHoklch(42.34% 0.19 271.6)
XYZxyz(10.7693, 6.7842, 43.3810)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B3 #B3A92F
analogous
#2F7BB3 #2F39B3 #672FB3
triadic
#2F39B3 #B32F39 #39B32F
tetradic
#2F39B3 #B32F7B #B3A92F #2FB367
square
#2F39B3 #B32F7B #B3A92F #2FB367
split-complementary
#2F39B3 #B3672F #7BB32F
monochromatic
#161A52 #222A83 #2F39B3 #4F58D1 #7F86DD

Accessibility & contrast

On white

8.91
#2F39B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F39B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B3
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B3#FFFFFF#000000##FFFFFF
##2F39B31.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f39b3;
/* rgb */ color: rgb(47, 57, 179);
/* oklch */ color: oklch(42.3% 0.190 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c70cb',
    500: '#2f39b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b3;
$custom-light: #7c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b3",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 235.455,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.1898,
    "h": 271.6
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#2F39B3
secondary
#C6C078
accent
#D646E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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