#2D2196#2D2196

#2D2196 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.179 H 276.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2D2196
RGBrgb(45, 33, 150)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 59%)
CMYKcmyk(70%, 78%, 0%, 41.2%)
CIE-LABlab(23.16, 42.08, -61.48)
CIE-LCHlch(23.16, 74.50, 304.39°)
OKLaboklab(35.6% 0.0212 -0.1777)
OKLCHoklch(35.6% 0.179 276.8)
XYZxyz(7.1293, 3.8470, 29.2151)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2196 #8A9621
analogous
#214F96 #2D2196 #672196
triadic
#2D2196 #962D21 #21962D
tetradic
#2D2196 #96214F #8A9621 #219667
square
#2D2196 #96214F #8A9621 #219667
split-complementary
#2D2196 #966721 #4F9621
monochromatic
#0F0B32 #1E1664 #2D2196 #3C2CC8 #6557DA

Accessibility & contrast

On white

11.87
#2D2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2196
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2196#FFFFFF#000000##FFFFFF
##2D21961.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2196;
/* rgb */ color: rgb(45, 33, 150);
/* oklch */ color: oklch(35.6% 0.179 276.8);
Tailwind
colors: {
  custom: {
    50: '#765fb6',
    500: '#2d2196',
    950: '#000000',
  },
}
SCSS
$custom: #2d2196;
$custom-light: #765fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2196",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 246.154,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.356,
    "c": 0.17894,
    "h": 276.8
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#2D2196
secondary
#B3BE55
accent
#E741D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2196

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

Preview Lab → · Contrast checker → · Palette generator →

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