#2F39B4#2F39B4

#2F39B4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.191 H 271.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2F39B4
RGBrgb(47, 57, 180)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(73.9%, 68.3%, 0%, 29.4%)
CIE-LABlab(31.40, 38.37, -66.04)
CIE-LCHlch(31.40, 76.38, 300.16°)
OKLaboklab(42.44% 0.0051 -0.191)
OKLCHoklch(42.44% 0.191 271.5)
XYZxyz(10.8708, 6.8248, 43.9156)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B4 #B4AA2F
analogous
#2F7BB4 #2F39B4 #682FB4
triadic
#2F39B4 #B42F39 #39B42F
tetradic
#2F39B4 #B42F7B #B4AA2F #2FB468
square
#2F39B4 #B42F7B #B4AA2F #2FB468
split-complementary
#2F39B4 #B4682F #7BB42F
monochromatic
#161A53 #222A83 #2F39B4 #4F59D1 #8087DE

Accessibility & contrast

On white

8.88
#2F39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39B4
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B4#FFFFFF#000000##FFFFFF
##2F39B41.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f39b4;
/* rgb */ color: rgb(47, 57, 180);
/* oklch */ color: oklch(42.4% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#2f39b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b4;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b4",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 235.489,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42436,
    "c": 0.19109,
    "h": 271.5
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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