#2F32A5#2F32A5

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

Color values

HEX#2F32A5
RGBrgb(47, 50, 165)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(71.5%, 69.7%, 0%, 35.3%)
CIE-LABlab(28.38, 37.45, -62.02)
CIE-LCHlch(28.38, 72.45, 301.12°)
OKLaboklab(39.82% 0.0111 -0.1793)
OKLCHoklch(39.82% 0.18 273.5)
XYZxyz(9.1022, 5.6013, 36.1915)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32A5 #A5A22F
analogous
#2F6DA5 #2F32A5 #672FA5
triadic
#2F32A5 #A52F32 #32A52F
tetradic
#2F32A5 #A52F6D #A5A22F #2FA567
square
#2F32A5 #A52F6D #A5A22F #2FA567
split-complementary
#2F32A5 #A5672F #6DA52F
monochromatic
#141546 #212475 #2F32A5 #474ACB #7679D8

Accessibility & contrast

On white

9.90
#2F32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32A5
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32A5#FFFFFF#000000##FFFFFF
##2F32A51.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f32a5;
/* rgb */ color: rgb(47, 50, 165);
/* oklch */ color: oklch(39.8% 0.180 273.5);
Tailwind
colors: {
  custom: {
    50: '#796ac1',
    500: '#2f32a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f32a5;
$custom-light: #796ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32a5",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 238.475,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39818,
    "c": 0.17962,
    "h": 273.5
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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