#2F39AA#2F39AA

#2F39AA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.178 H 271.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F39AA
RGBrgb(47, 57, 170)
HSLhsl(235, 57%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(72.4%, 66.5%, 0%, 33.3%)
CIE-LABlab(30.48, 34.83, -61.59)
CIE-LCHlch(30.48, 70.76, 299.49°)
OKLaboklab(41.48% 0.0061 -0.178)
OKLCHoklch(41.48% 0.178 271.9)
XYZxyz(9.8887, 6.4319, 38.7427)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F39AA #AAA02F
analogous
#2F76AA #2F39AA #632FAA
triadic
#2F39AA #AA2F39 #39AA2F
tetradic
#2F39AA #AA2F76 #AAA02F #2FAA63
square
#2F39AA #AA2F76 #AAA02F #2FAA63
split-complementary
#2F39AA #AA632F #76AA2F
monochromatic
#14194A #22297A #2F39AA #4954CD #7981DA

Accessibility & contrast

On white

9.18
#2F39AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F39AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F39AA
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F39AA#FFFFFF#000000##FFFFFF
##2F39AA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f39aa;
/* rgb */ color: rgb(47, 57, 170);
/* oklch */ color: oklch(41.5% 0.178 271.9);
Tailwind
colors: {
  custom: {
    50: '#796fc4',
    500: '#2f39aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f39aa;
$custom-light: #796fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f39aa",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 235.122,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41479,
    "c": 0.17811,
    "h": 271.9
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#2F39AA
secondary
#C2BC72
accent
#D448E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F39AA

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

Preview Lab → · Contrast checker → · Palette generator →

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