#2D20B3#2D20B3

#2D20B3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.7% C 0.214 H 273.8°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2D20B3
RGBrgb(45, 32, 179)
HSLhsl(245, 70%, 41%)
HSVhsv(245, 82%, 70%)
CMYKcmyk(74.9%, 82.1%, 0%, 29.8%)
CIE-LABlab(26.29, 51.65, -73.90)
CIE-LCHlch(26.29, 90.16, 304.95°)
OKLaboklab(38.74% 0.0142 -0.2137)
OKLCHoklch(38.74% 0.214 273.8)
XYZxyz(9.7327, 4.8446, 43.0613)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20B3 #A6B320
analogous
#205DB3 #2D20B3 #7720B3
triadic
#2D20B3 #B32D20 #20B32D
tetradic
#2D20B3 #B3205D #A6B320 #20B377
square
#2D20B3 #B3205D #A6B320 #20B377
split-complementary
#2D20B3 #B37720 #5DB320
monochromatic
#130D4B #20177F #2D20B3 #4435DB #7469E4

Accessibility & contrast

On white

10.66
#2D20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D20B3
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20B3#FFFFFF#000000##FFFFFF
##2D20B31.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d20b3;
/* rgb */ color: rgb(45, 32, 179);
/* oklch */ color: oklch(38.7% 0.214 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d60cb',
    500: '#2d20b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d20b3;
$custom-light: #7d60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20b3",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 245.306,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38744,
    "c": 0.21419,
    "h": 273.8
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#2D20B3
secondary
#C1CA65
accent
#EC3BDD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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