#2F32A7#2F32A7

#2F32A7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.182 H 273.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2F32A7
RGBrgb(47, 50, 167)
HSLhsl(239, 56%, 42%)
HSVhsv(239, 72%, 65%)
CMYKcmyk(71.9%, 70.1%, 0%, 34.5%)
CIE-LABlab(28.58, 38.14, -62.91)
CIE-LCHlch(28.58, 73.57, 301.23°)
OKLaboklab(40.02% 0.0108 -0.1819)
OKLCHoklch(40.02% 0.182 273.4)
XYZxyz(9.2856, 5.6747, 37.1577)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32A7 #A7A42F
analogous
#2F6EA7 #2F32A7 #682FA7
triadic
#2F32A7 #A72F32 #32A72F
tetradic
#2F32A7 #A72F6E #A7A42F #2FA768
square
#2F32A7 #A72F6E #A7A42F #2FA768
split-complementary
#2F32A7 #A7682F #6EA72F
monochromatic
#141547 #222477 #2F32A7 #484BCB #787AD9

Accessibility & contrast

On white

9.84
#2F32A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F32A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32A7
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32A7#FFFFFF#000000##FFFFFF
##2F32A71.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f32a7;
/* rgb */ color: rgb(47, 50, 167);
/* oklch */ color: oklch(40.0% 0.182 273.4);
Tailwind
colors: {
  custom: {
    50: '#796bc2',
    500: '#2f32a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f32a7;
$custom-light: #796bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32a7",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 167
  },
  "hsl": {
    "h": 238.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.1822,
    "h": 273.4
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#2F32A7
secondary
#C1BF71
accent
#DC48DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F32A7

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

Preview Lab → · Contrast checker → · Palette generator →

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