#2F39A9#2F39A9

#2F39A9 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.177 H 272.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2F39A9
RGBrgb(47, 57, 169)
HSLhsl(235, 56%, 42%)
HSVhsv(235, 72%, 66%)
CMYKcmyk(72.2%, 66.3%, 0%, 33.7%)
CIE-LABlab(30.39, 34.47, -61.14)
CIE-LCHlch(30.39, 70.19, 299.42°)
OKLaboklab(41.39% 0.0061 -0.1767)
OKLCHoklch(41.39% 0.177 272)
XYZxyz(9.7944, 6.3942, 38.2464)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39A9 #A99F2F
analogous
#2F76A9 #2F39A9 #622FA9
triadic
#2F39A9 #A92F39 #39A92F
tetradic
#2F39A9 #A92F76 #A99F2F #2FA962
square
#2F39A9 #A92F76 #A99F2F #2FA962
split-complementary
#2F39A9 #A9622F #76A92F
monochromatic
#141949 #222979 #2F39A9 #4954CC #7981DA

Accessibility & contrast

On white

9.21
#2F39A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F39A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39A9
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39A9#FFFFFF#000000##FFFFFF
##2F39A91.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f39a9;
/* rgb */ color: rgb(47, 57, 169);
/* oklch */ color: oklch(41.4% 0.177 272.0);
Tailwind
colors: {
  custom: {
    50: '#796fc4',
    500: '#2f39a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f39a9;
$custom-light: #796fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39a9",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 169
  },
  "hsl": {
    "h": 235.082,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41385,
    "c": 0.1768,
    "h": 272
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#2F39A9
secondary
#C2BB72
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F39A9

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

Preview Lab → · Contrast checker → · Palette generator →

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