#2F32A6#2F32A6

#2F32A6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.181 H 273.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F32A6
RGBrgb(47, 50, 166)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(71.7%, 69.9%, 0%, 34.9%)
CIE-LABlab(28.48, 37.80, -62.46)
CIE-LCHlch(28.48, 73.01, 301.18°)
OKLaboklab(39.92% 0.011 -0.1806)
OKLCHoklch(39.92% 0.181 273.5)
XYZxyz(9.1935, 5.6378, 36.6727)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32A6 #A6A32F
analogous
#2F6EA6 #2F32A6 #672FA6
triadic
#2F32A6 #A62F32 #32A62F
tetradic
#2F32A6 #A62F6E #A6A32F #2FA667
square
#2F32A6 #A62F6E #A6A32F #2FA667
split-complementary
#2F32A6 #A6672F #6EA62F
monochromatic
#141547 #212476 #2F32A6 #474BCB #7779D8

Accessibility & contrast

On white

9.87
#2F32A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F32A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32A6
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32A6#FFFFFF#000000##FFFFFF
##2F32A61.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f32a6;
/* rgb */ color: rgb(47, 50, 166);
/* oklch */ color: oklch(39.9% 0.181 273.5);
Tailwind
colors: {
  custom: {
    50: '#796bc2',
    500: '#2f32a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f32a6;
$custom-light: #796bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32a6",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 166
  },
  "hsl": {
    "h": 238.487,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39916,
    "c": 0.18091,
    "h": 273.5
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#2F32A6
secondary
#C1BF70
accent
#DB49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F32A6

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

Preview Lab → · Contrast checker → · Palette generator →

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