#2F39AC#2F39AC

#2F39AC is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.181 H 271.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2F39AC
RGBrgb(47, 57, 172)
HSLhsl(235, 57%, 43%)
HSVhsv(235, 73%, 67%)
CMYKcmyk(72.7%, 66.9%, 0%, 32.5%)
CIE-LABlab(30.66, 35.55, -62.49)
CIE-LCHlch(30.66, 71.89, 299.63°)
OKLaboklab(41.67% 0.0059 -0.1806)
OKLCHoklch(41.67% 0.181 271.9)
XYZxyz(10.0793, 6.5081, 39.7467)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39AC #ACA22F
analogous
#2F77AC #2F39AC #632FAC
triadic
#2F39AC #AC2F39 #39AC2F
tetradic
#2F39AC #AC2F77 #ACA22F #2FAC63
square
#2F39AC #AC2F77 #ACA22F #2FAC63
split-complementary
#2F39AC #AC632F #77AC2F
monochromatic
#15194C #22297C #2F39AC #4B55CE #7B82DB

Accessibility & contrast

On white

9.12
#2F39AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F39AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39AC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39AC#FFFFFF#000000##FFFFFF
##2F39AC1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f39ac;
/* rgb */ color: rgb(47, 57, 172);
/* oklch */ color: oklch(41.7% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a6fc6',
    500: '#2f39ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f39ac;
$custom-light: #7a6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39ac",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 235.2,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.18074,
    "h": 271.9
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#2F39AC
secondary
#C3BD74
accent
#D447E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F39AC

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

Preview Lab → · Contrast checker → · Palette generator →

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