#2D2392#2D2392

#2D2392 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.172 H 277.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2D2392
RGBrgb(45, 35, 146)
HSLhsl(245, 61%, 35%)
HSVhsv(245, 76%, 57%)
CMYKcmyk(69.2%, 76%, 0%, 42.7%)
CIE-LABlab(23.12, 39.67, -59.08)
CIE-LCHlch(23.12, 71.16, 303.88°)
OKLaboklab(35.44% 0.021 -0.1707)
OKLCHoklch(35.44% 0.172 277)
XYZxyz(6.8698, 3.8347, 27.5667)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2392 #889223
analogous
#235192 #2D2392 #642392
triadic
#2D2392 #922D23 #23922D
tetradic
#2D2392 #922351 #889223 #239264
square
#2D2392 #922351 #889223 #239264
split-complementary
#2D2392 #926423 #519223
monochromatic
#0F0B2F #1E1761 #2D2392 #3C2FC3 #6458D7

Accessibility & contrast

On white

11.88
#2D2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2392
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2392#FFFFFF#000000##FFFFFF
##2D23921.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2392;
/* rgb */ color: rgb(45, 35, 146);
/* oklch */ color: oklch(35.4% 0.172 277.0);
Tailwind
colors: {
  custom: {
    50: '#7560b3',
    500: '#2d2392',
    950: '#000000',
  },
}
SCSS
$custom: #2d2392;
$custom-light: #7560b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2392",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 245.405,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35442,
    "c": 0.172,
    "h": 277
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#2D2392
secondary
#B2BB55
accent
#E443D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2392

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

Preview Lab → · Contrast checker → · Palette generator →

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