#2F20BB#2F20BB

#2F20BB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.8% C 0.223 H 273.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2F20BB
RGBrgb(47, 32, 187)
HSLhsl(246, 71%, 43%)
HSVhsv(246, 83%, 73%)
CMYKcmyk(74.9%, 82.9%, 0%, 26.7%)
CIE-LABlab(27.36, 54.18, -76.87)
CIE-LCHlch(27.36, 94.04, 305.18°)
OKLaboklab(39.8% 0.0146 -0.2223)
OKLCHoklch(39.8% 0.223 273.8)
XYZxyz(10.6555, 5.2241, 47.4509)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20BB #ACBB20
analogous
#205FBB #2F20BB #7C20BB
triadic
#2F20BB #BB2F20 #20BB2F
tetradic
#2F20BB #BB205F #ACBB20 #20BB7C
square
#2F20BB #BB205F #ACBB20 #20BB7C
split-complementary
#2F20BB #BB7C20 #5FBB20
monochromatic
#150E52 #221787 #2F20BB #4B3BDD #7B6FE6

Accessibility & contrast

On white

10.27
#2F20BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F20BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20BB
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20BB#FFFFFF#000000##FFFFFF
##2F20BB1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f20bb;
/* rgb */ color: rgb(47, 32, 187);
/* oklch */ color: oklch(39.8% 0.223 273.8);
Tailwind
colors: {
  custom: {
    50: '#8061d1',
    500: '#2f20bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f20bb;
$custom-light: #8061d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20bb",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 245.806,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39795,
    "c": 0.22277,
    "h": 273.8
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#2F20BB
secondary
#C3CD6A
accent
#EE3ADC
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2F20BB

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

Preview Lab → · Contrast checker → · Palette generator →

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