#2F32A1#2F32A1

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

Color values

HEX#2F32A1
RGBrgb(47, 50, 161)
HSLhsl(238, 55%, 41%)
HSVhsv(238, 71%, 63%)
CMYKcmyk(70.8%, 68.9%, 0%, 36.9%)
CIE-LABlab(28.00, 36.05, -60.23)
CIE-LCHlch(28.00, 70.19, 300.91°)
OKLaboklab(39.43% 0.0116 -0.174)
OKLCHoklch(39.43% 0.174 273.8)
XYZxyz(8.7438, 5.4579, 34.3040)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32A1 #A19E2F
analogous
#2F6BA1 #2F32A1 #652FA1
triadic
#2F32A1 #A12F32 #32A12F
tetradic
#2F32A1 #A12F6B #A19E2F #2FA165
square
#2F32A1 #A12F6B #A19E2F #2FA165
split-complementary
#2F32A1 #A1652F #6BA12F
monochromatic
#131542 #212372 #2F32A1 #4548C9 #7477D6

Accessibility & contrast

On white

10.04
#2F32A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F32A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32A1
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32A1#FFFFFF#000000##FFFFFF
##2F32A11.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f32a1;
/* rgb */ color: rgb(47, 50, 161);
/* oklch */ color: oklch(39.4% 0.174 273.8);
Tailwind
colors: {
  custom: {
    50: '#786abe',
    500: '#2f32a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f32a1;
$custom-light: #786abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32a1",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 161
  },
  "hsl": {
    "h": 238.421,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39426,
    "c": 0.17443,
    "h": 273.8
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#2F32A1
secondary
#BEBC6E
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F32A1

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

Preview Lab → · Contrast checker → · Palette generator →

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