#2F31A4#2F31A4

#2F31A4 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.179 H 273.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F31A4
RGBrgb(47, 49, 164)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 64%)
CMYKcmyk(71.3%, 70.1%, 0%, 35.7%)
CIE-LABlab(28.06, 37.71, -61.94)
CIE-LCHlch(28.06, 72.52, 301.34°)
OKLaboklab(39.56% 0.0119 -0.1791)
OKLCHoklch(39.56% 0.179 273.8)
XYZxyz(8.9692, 5.4804, 35.6999)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F31A4 #A4A22F
analogous
#2F6CA4 #2F31A4 #682FA4
triadic
#2F31A4 #A42F31 #31A42F
tetradic
#2F31A4 #A42F6C #A4A22F #2FA468
square
#2F31A4 #A42F6C #A4A22F #2FA468
split-complementary
#2F31A4 #A4682F #6CA42F
monochromatic
#141545 #212374 #2F31A4 #4648CA #7677D8

Accessibility & contrast

On white

10.02
#2F31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F31A4
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F31A4#FFFFFF#000000##FFFFFF
##2F31A41.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f31a4;
/* rgb */ color: rgb(47, 49, 164);
/* oklch */ color: oklch(39.6% 0.179 273.8);
Tailwind
colors: {
  custom: {
    50: '#796ac0',
    500: '#2f31a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f31a4;
$custom-light: #796ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f31a4",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 238.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39557,
    "c": 0.17945,
    "h": 273.8
  },
  "luminance": 0.05481
}

Semantic roles & 50–950 ramp

primary
#2F31A4
secondary
#C0BE6F
accent
#DC49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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