#2D2199#2D2199

#2D2199 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.183 H 276.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2D2199
RGBrgb(45, 33, 153)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(70.6%, 78.4%, 0%, 40%)
CIE-LABlab(23.49, 43.04, -62.78)
CIE-LCHlch(23.49, 76.12, 304.43°)
OKLaboklab(35.93% 0.0205 -0.1815)
OKLCHoklch(35.93% 0.183 276.4)
XYZxyz(7.3739, 3.9448, 30.5036)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2199 #8D9921
analogous
#215199 #2D2199 #692199
triadic
#2D2199 #992D21 #21992D
tetradic
#2D2199 #992151 #8D9921 #219969
square
#2D2199 #992151 #8D9921 #219969
split-complementary
#2D2199 #996921 #519921
monochromatic
#0F0B34 #1E1667 #2D2199 #3C2CCB #6659DB

Accessibility & contrast

On white

11.74
#2D2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2199
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2199#FFFFFF#000000##FFFFFF
##2D21991.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2199;
/* rgb */ color: rgb(45, 33, 153);
/* oklch */ color: oklch(35.9% 0.183 276.4);
Tailwind
colors: {
  custom: {
    50: '#775fb8',
    500: '#2d2199',
    950: '#000000',
  },
}
SCSS
$custom: #2d2199;
$custom-light: #775fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2199",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 246,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35928,
    "c": 0.18262,
    "h": 276.4
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#2D2199
secondary
#B5BF56
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D2199

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

Preview Lab → · Contrast checker → · Palette generator →

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