#2F32C7#2F32C7

#2F32C7 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.3% C 0.222 H 271.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2F32C7
RGBrgb(47, 50, 199)
HSLhsl(239, 62%, 48%)
HSVhsv(239, 76%, 78%)
CMYKcmyk(76.4%, 74.9%, 0%, 22%)
CIE-LABlab(31.82, 48.93, -76.54)
CIE-LCHlch(31.82, 90.85, 302.59°)
OKLaboklab(43.31% 0.0058 -0.2216)
OKLCHoklch(43.31% 0.222 271.5)
XYZxyz(12.6182, 7.0077, 54.7094)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32C7 #C7C42F
analogous
#2F7EC7 #2F32C7 #782FC7
triadic
#2F32C7 #C72F32 #32C72F
tetradic
#2F32C7 #C72F7E #C7C42F #2FC778
square
#2F32C7 #C72F7E #C7C42F #2FC778
split-complementary
#2F32C7 #C7782F #7EC72F
monochromatic
#181964 #232695 #2F32C7 #5B5DD8 #8C8EE4

Accessibility & contrast

On white

8.74
#2F32C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F32C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32C7
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32C7#FFFFFF#000000##FFFFFF
##2F32C71.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#0043C4
Tritanopia (blue-blind)
#005E7A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f32c7;
/* rgb */ color: rgb(47, 50, 199);
/* oklch */ color: oklch(43.3% 0.222 271.5);
Tailwind
colors: {
  custom: {
    50: '#816cd9',
    500: '#2f32c7',
    950: '#000000',
  },
}
SCSS
$custom: #2f32c7;
$custom-light: #816cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32c7",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 199
  },
  "hsl": {
    "h": 238.816,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.22169,
    "h": 271.5
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#2F32C7
secondary
#CECD84
accent
#E243E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F32C7

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

Preview Lab → · Contrast checker → · Palette generator →

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