#2D2195#2D2195

#2D2195 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.178 H 276.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2D2195
RGBrgb(45, 33, 149)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 58%)
CMYKcmyk(69.8%, 77.9%, 0%, 41.6%)
CIE-LABlab(23.05, 41.75, -61.05)
CIE-LCHlch(23.05, 73.96, 304.37°)
OKLaboklab(35.49% 0.0215 -0.1764)
OKLCHoklch(35.49% 0.178 276.9)
XYZxyz(7.0491, 3.8149, 28.7928)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2195 #899521
analogous
#214F95 #2D2195 #672195
triadic
#2D2195 #952D21 #21952D
tetradic
#2D2195 #95214F #899521 #219567
square
#2D2195 #95214F #899521 #219567
split-complementary
#2D2195 #956721 #4F9521
monochromatic
#0F0B31 #1E1663 #2D2195 #3C2CC7 #6457DA

Accessibility & contrast

On white

11.91
#2D2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2195
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2195#FFFFFF#000000##FFFFFF
##2D21951.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2195;
/* rgb */ color: rgb(45, 33, 149);
/* oklch */ color: oklch(35.5% 0.178 276.9);
Tailwind
colors: {
  custom: {
    50: '#765fb5',
    500: '#2d2195',
    950: '#000000',
  },
}
SCSS
$custom: #2d2195;
$custom-light: #765fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2195",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 246.207,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.17771,
    "h": 276.9
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2195

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

Preview Lab → · Contrast checker → · Palette generator →

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