#2F39B5#2F39B5

#2F39B5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.192 H 271.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2F39B5
RGBrgb(47, 57, 181)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(74%, 68.5%, 0%, 29%)
CIE-LABlab(31.50, 38.73, -66.48)
CIE-LCHlch(31.50, 76.93, 300.22°)
OKLaboklab(42.53% 0.005 -0.1923)
OKLCHoklch(42.53% 0.192 271.5)
XYZxyz(10.9731, 6.8656, 44.4540)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39B5 #B5AB2F
analogous
#2F7CB5 #2F39B5 #682FB5
triadic
#2F39B5 #B52F39 #39B52F
tetradic
#2F39B5 #B52F7C #B5AB2F #2FB568
square
#2F39B5 #B52F7C #B5AB2F #2FB568
split-complementary
#2F39B5 #B5682F #7CB52F
monochromatic
#161A54 #222A84 #2F39B5 #5059D1 #8087DE

Accessibility & contrast

On white

8.85
#2F39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F39B5
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39B5#FFFFFF#000000##FFFFFF
##2F39B51.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f39b5;
/* rgb */ color: rgb(47, 57, 181);
/* oklch */ color: oklch(42.5% 0.192 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#2f39b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f39b5;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39b5",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 235.522,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42533,
    "c": 0.19237,
    "h": 271.5
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#2F39B5
secondary
#C7C179
accent
#D646E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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