#2D2193#2D2193

#2D2193 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.175 H 277.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2D2193
RGBrgb(45, 33, 147)
HSLhsl(246, 63%, 35%)
HSVhsv(246, 78%, 58%)
CMYKcmyk(69.4%, 77.6%, 0%, 42.4%)
CIE-LABlab(22.83, 41.11, -60.17)
CIE-LCHlch(22.83, 72.87, 304.34°)
OKLaboklab(35.27% 0.022 -0.1739)
OKLCHoklch(35.27% 0.175 277.2)
XYZxyz(6.8908, 3.7516, 27.9591)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2193 #879321
analogous
#214E93 #2D2193 #662193
triadic
#2D2193 #932D21 #21932D
tetradic
#2D2193 #93214E #879321 #219366
square
#2D2193 #93214E #879321 #219366
split-complementary
#2D2193 #936621 #4E9321
monochromatic
#0E0B2F #1E1661 #2D2193 #3C2CC5 #6355D9

Accessibility & contrast

On white

12.00
#2D2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2193
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2193#FFFFFF#000000##FFFFFF
##2D21931.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2193;
/* rgb */ color: rgb(45, 33, 147);
/* oklch */ color: oklch(35.3% 0.175 277.2);
Tailwind
colors: {
  custom: {
    50: '#765fb4',
    500: '#2d2193',
    950: '#000000',
  },
}
SCSS
$custom: #2d2193;
$custom-light: #765fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2193",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 246.316,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.17524,
    "h": 277.2
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#2D2193
secondary
#B2BD53
accent
#E641D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2193

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

Preview Lab → · Contrast checker → · Palette generator →

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