#2F32A0#2F32A0

#2F32A0 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.173 H 273.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F32A0
RGBrgb(47, 50, 160)
HSLhsl(238, 55%, 41%)
HSVhsv(238, 71%, 63%)
CMYKcmyk(70.6%, 68.8%, 0%, 37.3%)
CIE-LABlab(27.91, 35.70, -59.77)
CIE-LCHlch(27.91, 69.62, 300.85°)
OKLaboklab(39.33% 0.0117 -0.1727)
OKLCHoklch(39.33% 0.173 273.9)
XYZxyz(8.6559, 5.4228, 33.8414)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32A0 #A09D2F
analogous
#2F6AA0 #2F32A0 #642FA0
triadic
#2F32A0 #A02F32 #32A02F
tetradic
#2F32A0 #A02F6A #A09D2F #2FA064
square
#2F32A0 #A02F6A #A09D2F #2FA064
split-complementary
#2F32A0 #A0642F #6AA02F
monochromatic
#131441 #212371 #2F32A0 #4448C8 #7376D6

Accessibility & contrast

On white

10.07
#2F32A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F32A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32A0
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32A0#FFFFFF#000000##FFFFFF
##2F32A01.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f32a0;
/* rgb */ color: rgb(47, 50, 160);
/* oklch */ color: oklch(39.3% 0.173 273.9);
Tailwind
colors: {
  custom: {
    50: '#786abd',
    500: '#2f32a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f32a0;
$custom-light: #786abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32a0",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 160
  },
  "hsl": {
    "h": 238.407,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.17312,
    "h": 273.9
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F32A0

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

Preview Lab → · Contrast checker → · Palette generator →

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