#2F20B9#2F20B9

#2F20B9 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.6% C 0.221 H 273.9°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2F20B9
RGBrgb(47, 32, 185)
HSLhsl(246, 71%, 43%)
HSVhsv(246, 83%, 73%)
CMYKcmyk(74.6%, 82.7%, 0%, 27.5%)
CIE-LABlab(27.13, 53.58, -76.07)
CIE-LCHlch(27.13, 93.05, 305.16°)
OKLaboklab(39.56% 0.0152 -0.22)
OKLCHoklch(39.56% 0.221 273.9)
XYZxyz(10.4429, 5.1391, 46.3311)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20B9 #AAB920
analogous
#205EB9 #2F20B9 #7B20B9
triadic
#2F20B9 #B92F20 #20B92F
tetradic
#2F20B9 #B9205E #AAB920 #20B97B
square
#2F20B9 #B9205E #AAB920 #20B97B
split-complementary
#2F20B9 #B97B20 #5EB920
monochromatic
#140E51 #221785 #2F20B9 #4939DD #796EE6

Accessibility & contrast

On white

10.36
#2F20B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F20B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20B9
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20B9#FFFFFF#000000##FFFFFF
##2F20B91.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BD
Deuteranopia (green-blind)
#0039B6
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f20b9;
/* rgb */ color: rgb(47, 32, 185);
/* oklch */ color: oklch(39.6% 0.221 273.9);
Tailwind
colors: {
  custom: {
    50: '#7f61d0',
    500: '#2f20b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f20b9;
$custom-light: #7f61d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20b9",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 185
  },
  "hsl": {
    "h": 245.882,
    "s": 70.507,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39564,
    "c": 0.22051,
    "h": 273.9
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#2F20B9
secondary
#C2CC69
accent
#ED3BDC
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2F20B9

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

Preview Lab → · Contrast checker → · Palette generator →

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