#2D2292#2D2292

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

Color values

HEX#2D2292
RGBrgb(45, 34, 146)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 77%, 57%)
CMYKcmyk(69.2%, 76.7%, 0%, 42.7%)
CIE-LABlab(22.92, 40.23, -59.41)
CIE-LCHlch(22.92, 71.75, 304.10°)
OKLaboklab(35.3% 0.0216 -0.1716)
OKLCHoklch(35.3% 0.173 277.2)
XYZxyz(6.8408, 3.7767, 27.5570)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2292 #879222
analogous
#224F92 #2D2292 #652292
triadic
#2D2292 #922D22 #22922D
tetradic
#2D2292 #92224F #879222 #229265
square
#2D2292 #92224F #879222 #229265
split-complementary
#2D2292 #926522 #4F9222
monochromatic
#0E0B2F #1E1660 #2D2292 #3C2EC4 #6357D8

Accessibility & contrast

On white

11.96
#2D2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2292
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2292#FFFFFF#000000##FFFFFF
##2D22921.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2292;
/* rgb */ color: rgb(45, 34, 146);
/* oklch */ color: oklch(35.3% 0.173 277.2);
Tailwind
colors: {
  custom: {
    50: '#755fb3',
    500: '#2d2292',
    950: '#000000',
  },
}
SCSS
$custom: #2d2292;
$custom-light: #755fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2292",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 245.893,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35302,
    "c": 0.17301,
    "h": 277.2
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#2D2292
secondary
#B2BC54
accent
#E543D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2292

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

Preview Lab → · Contrast checker → · Palette generator →

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