#2B20A6#2B20A6

#2B20A6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.200 H 274.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2B20A6
RGBrgb(43, 32, 166)
HSLhsl(245, 68%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.1%, 80.7%, 0%, 34.9%)
CIE-LABlab(24.64, 47.50, -68.82)
CIE-LCHlch(24.64, 83.62, 304.62°)
OKLaboklab(37.12% 0.0149 -0.199)
OKLCHoklch(37.12% 0.2 274.3)
XYZxyz(8.3934, 4.2989, 36.4564)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20A6 #9BA620
analogous
#2058A6 #2B20A6 #6E20A6
triadic
#2B20A6 #A62B20 #20A62B
tetradic
#2B20A6 #A62058 #9BA620 #20A66E
square
#2B20A6 #A62058 #9BA620 #20A66E
split-complementary
#2B20A6 #A66E20 #58A620
monochromatic
#100C3F #1E1673 #2B20A6 #3B2DD6 #6B60E0

Accessibility & contrast

On white

11.29
#2B20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B20A6
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20A6#FFFFFF#000000##FFFFFF
##2B20A61.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b20a6;
/* rgb */ color: rgb(43, 32, 166);
/* oklch */ color: oklch(37.1% 0.200 274.3);
Tailwind
colors: {
  custom: {
    50: '#795fc2',
    500: '#2b20a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b20a6;
$custom-light: #795fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20a6",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 244.925,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.19959,
    "h": 274.3
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#2B20A6
secondary
#BCC55D
accent
#EB3DDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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