#2D2396#2D2396

#2D2396 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.177 H 276.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2D2396
RGBrgb(45, 35, 150)
HSLhsl(245, 62%, 36%)
HSVhsv(245, 77%, 59%)
CMYKcmyk(70%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.54, 40.98, -60.85)
CIE-LCHlch(23.54, 73.36, 303.96°)
OKLaboklab(35.87% 0.0201 -0.1758)
OKLCHoklch(35.87% 0.177 276.5)
XYZxyz(7.1864, 3.9613, 29.2341)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2396 #8C9623
analogous
#235396 #2D2396 #672396
triadic
#2D2396 #962D23 #23962D
tetradic
#2D2396 #962353 #8C9623 #239667
square
#2D2396 #962353 #8C9623 #239667
split-complementary
#2D2396 #966723 #539623
monochromatic
#0F0C33 #1E1764 #2D2396 #3C2FC8 #665BD9

Accessibility & contrast

On white

11.72
#2D2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2396
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2396#FFFFFF#000000##FFFFFF
##2D23961.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2396;
/* rgb */ color: rgb(45, 35, 150);
/* oklch */ color: oklch(35.9% 0.177 276.5);
Tailwind
colors: {
  custom: {
    50: '#7660b6',
    500: '#2d2396',
    950: '#000000',
  },
}
SCSS
$custom: #2d2396;
$custom-light: #7660b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2396",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 245.217,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3587,
    "c": 0.177,
    "h": 276.5
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#2D2396
secondary
#B4BD58
accent
#E543D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2396

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

Preview Lab → · Contrast checker → · Palette generator →

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