#2F32B1#2F32B1

#2F32B1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.195 H 272.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2F32B1
RGBrgb(47, 50, 177)
HSLhsl(239, 58%, 44%)
HSVhsv(239, 73%, 69%)
CMYKcmyk(73.4%, 71.8%, 0%, 30.6%)
CIE-LABlab(29.56, 41.58, -67.28)
CIE-LCHlch(29.56, 79.10, 301.72°)
OKLaboklab(41.02% 0.0094 -0.1947)
OKLCHoklch(41.02% 0.195 272.8)
XYZxyz(10.2460, 6.0588, 42.2159)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32B1 #B1AE2F
analogous
#2F73B1 #2F32B1 #6D2FB1
triadic
#2F32B1 #B12F32 #32B12F
tetradic
#2F32B1 #B12F73 #B1AE2F #2FB16D
square
#2F32B1 #B12F73 #B1AE2F #2FB16D
split-complementary
#2F32B1 #B16D2F #73B12F
monochromatic
#151750 #222481 #2F32B1 #4D50D0 #7E80DD

Accessibility & contrast

On white

9.49
#2F32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32B1
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32B1#FFFFFF#000000##FFFFFF
##2F32B11.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f32b1;
/* rgb */ color: rgb(47, 50, 177);
/* oklch */ color: oklch(41.0% 0.195 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c6bca',
    500: '#2f32b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f32b1;
$custom-light: #7c6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32b1",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 238.615,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41019,
    "c": 0.19489,
    "h": 272.8
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#2F32B1
secondary
#C5C476
accent
#DE47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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