#2D2191#2D2191

#2D2191 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.173 H 277.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2D2191
RGBrgb(45, 33, 145)
HSLhsl(246, 63%, 35%)
HSVhsv(246, 77%, 57%)
CMYKcmyk(69%, 77.2%, 0%, 43.1%)
CIE-LABlab(22.62, 40.46, -59.29)
CIE-LCHlch(22.62, 71.77, 304.31°)
OKLaboklab(35.06% 0.0224 -0.1713)
OKLCHoklch(35.06% 0.173 277.5)
XYZxyz(6.7352, 3.6893, 27.1397)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2191 #859121
analogous
#214D91 #2D2191 #652191
triadic
#2D2191 #912D21 #21912D
tetradic
#2D2191 #91214D #859121 #219165
square
#2D2191 #91214D #859121 #219165
split-complementary
#2D2191 #916521 #4D9121
monochromatic
#0E0A2D #1E165F #2D2191 #3C2CC3 #6254D8

Accessibility & contrast

On white

12.08
#2D2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2191
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2191#FFFFFF#000000##FFFFFF
##2D21911.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2191;
/* rgb */ color: rgb(45, 33, 145);
/* oklch */ color: oklch(35.1% 0.173 277.5);
Tailwind
colors: {
  custom: {
    50: '#755fb2',
    500: '#2d2191',
    950: '#000000',
  },
}
SCSS
$custom: #2d2191;
$custom-light: #755fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2191",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 246.429,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35057,
    "c": 0.17275,
    "h": 277.5
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#2D2191
secondary
#B0BC52
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2191

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

Preview Lab → · Contrast checker → · Palette generator →

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