#2F32B3#2F32B3

#2F32B3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.197 H 272.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F32B3
RGBrgb(47, 50, 179)
HSLhsl(239, 58%, 44%)
HSVhsv(239, 74%, 70%)
CMYKcmyk(73.7%, 72.1%, 0%, 29.8%)
CIE-LABlab(29.76, 42.26, -68.15)
CIE-LCHlch(29.76, 80.19, 301.81°)
OKLaboklab(41.22% 0.0091 -0.1972)
OKLCHoklch(41.22% 0.197 272.6)
XYZxyz(10.4468, 6.1391, 43.2735)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32B3 #B3B02F
analogous
#2F74B3 #2F32B3 #6E2FB3
triadic
#2F32B3 #B32F32 #32B32F
tetradic
#2F32B3 #B32F74 #B3B02F #2FB36E
square
#2F32B3 #B32F74 #B3B02F #2FB36E
split-complementary
#2F32B3 #B36E2F #74B32F
monochromatic
#161752 #222483 #2F32B3 #4F51D1 #7F81DD

Accessibility & contrast

On white

9.43
#2F32B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F32B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32B3
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32B3#FFFFFF#000000##FFFFFF
##2F32B31.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f32b3;
/* rgb */ color: rgb(47, 50, 179);
/* oklch */ color: oklch(41.2% 0.197 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c6bcb',
    500: '#2f32b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f32b3;
$custom-light: #7c6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32b3",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 179
  },
  "hsl": {
    "h": 238.636,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41223,
    "c": 0.19738,
    "h": 272.6
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#2F32B3
secondary
#C6C478
accent
#DE46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F32B3

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

Preview Lab → · Contrast checker → · Palette generator →

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