#2B20A5#2B20A5

#2B20A5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.198 H 274.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2B20A5
RGBrgb(43, 32, 165)
HSLhsl(245, 68%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(73.9%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.52, 47.19, -68.40)
CIE-LCHlch(24.52, 83.10, 304.60°)
OKLaboklab(37.01% 0.0152 -0.1978)
OKLCHoklch(37.01% 0.198 274.4)
XYZxyz(8.3021, 4.2624, 35.9752)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20A5 #9AA520
analogous
#2057A5 #2B20A5 #6D20A5
triadic
#2B20A5 #A52B20 #20A52B
tetradic
#2B20A5 #A52057 #9AA520 #20A56D
square
#2B20A5 #A52057 #9AA520 #20A56D
split-complementary
#2B20A5 #A56D20 #57A520
monochromatic
#100C3E #1E1672 #2B20A5 #3A2CD6 #6A5FE0

Accessibility & contrast

On white

11.34
#2B20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B20A5
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20A5#FFFFFF#000000##FFFFFF
##2B20A51.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b20a5;
/* rgb */ color: rgb(43, 32, 165);
/* oklch */ color: oklch(37.0% 0.198 274.4);
Tailwind
colors: {
  custom: {
    50: '#795fc1',
    500: '#2b20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b20a5;
$custom-light: #795fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20a5",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 244.962,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37009,
    "c": 0.19841,
    "h": 274.4
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#2B20A5
secondary
#BCC55C
accent
#EA3DDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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