#2F32B2#2F32B2

#2F32B2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.196 H 272.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F32B2
RGBrgb(47, 50, 178)
HSLhsl(239, 58%, 44%)
HSVhsv(239, 74%, 70%)
CMYKcmyk(73.6%, 71.9%, 0%, 30.2%)
CIE-LABlab(29.66, 41.92, -67.72)
CIE-LCHlch(29.66, 79.64, 301.76°)
OKLaboklab(41.12% 0.0093 -0.1959)
OKLCHoklch(41.12% 0.196 272.7)
XYZxyz(10.3461, 6.0988, 42.7428)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F32B2 #B2AF2F
analogous
#2F74B2 #2F32B2 #6E2FB2
triadic
#2F32B2 #B22F32 #32B22F
tetradic
#2F32B2 #B22F74 #B2AF2F #2FB26E
square
#2F32B2 #B22F74 #B2AF2F #2FB26E
split-complementary
#2F32B2 #B26E2F #74B22F
monochromatic
#151751 #222482 #2F32B2 #4E51D0 #7E81DD

Accessibility & contrast

On white

9.46
#2F32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F32B2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F32B2#FFFFFF#000000##FFFFFF
##2F32B21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f32b2;
/* rgb */ color: rgb(47, 50, 178);
/* oklch */ color: oklch(41.1% 0.196 272.7);
Tailwind
colors: {
  custom: {
    50: '#7c6bca',
    500: '#2f32b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f32b2;
$custom-light: #7c6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f32b2",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 238.626,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41121,
    "c": 0.19613,
    "h": 272.7
  },
  "luminance": 0.061
}

Semantic roles & 50–950 ramp

primary
#2F32B2
secondary
#C6C477
accent
#DE46E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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