#2D2296#2D2296

#2D2296 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.178 H 276.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2D2296
RGBrgb(45, 34, 150)
HSLhsl(246, 63%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(70%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.35, 41.53, -61.17)
CIE-LCHlch(23.35, 73.94, 304.18°)
OKLaboklab(35.73% 0.0207 -0.1768)
OKLCHoklch(35.73% 0.178 276.7)
XYZxyz(7.1574, 3.9033, 29.2245)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2296 #8B9622
analogous
#225196 #2D2296 #672296
triadic
#2D2296 #962D22 #22962D
tetradic
#2D2296 #962251 #8B9622 #229667
square
#2D2296 #962251 #8B9622 #229667
split-complementary
#2D2296 #966722 #519622
monochromatic
#0F0B32 #1E1764 #2D2296 #3C2DC8 #6559D9

Accessibility & contrast

On white

11.79
#2D2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2296
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2296#FFFFFF#000000##FFFFFF
##2D22961.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2296;
/* rgb */ color: rgb(45, 34, 150);
/* oklch */ color: oklch(35.7% 0.178 276.7);
Tailwind
colors: {
  custom: {
    50: '#7660b6',
    500: '#2d2296',
    950: '#000000',
  },
}
SCSS
$custom: #2d2296;
$custom-light: #7660b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2296",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 245.69,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35733,
    "c": 0.17798,
    "h": 276.7
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#2D2296
secondary
#B4BE56
accent
#E642D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2296

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

Preview Lab → · Contrast checker → · Palette generator →

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