#2D226C#2D226C

#2D226C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.123 H 283.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2D226C
RGBrgb(45, 34, 108)
HSLhsl(249, 52%, 28%)
HSVhsv(249, 69%, 42%)
CMYKcmyk(58.3%, 68.5%, 0%, 57.6%)
CIE-LABlab(19.16, 27.44, -41.50)
CIE-LCHlch(19.16, 49.75, 303.48°)
OKLaboklab(31.47% 0.0288 -0.1192)
OKLCHoklch(31.47% 0.123 283.6)
XYZxyz(4.3602, 2.7844, 14.4921)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D226C #616C22
analogous
#223C6C #2D226C #52226C
triadic
#2D226C #6C2D22 #226C2D
tetradic
#2D226C #6C223C #616C22 #226C52
square
#2D226C #6C223C #616C22 #226C52
split-complementary
#2D226C #6C5222 #3C6C22
monochromatic
#0A0717 #1A133D #2D226C #40319B #5744C4

Accessibility & contrast

On white

13.49
#2D226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D226C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D226C#FFFFFF#000000##FFFFFF
##2D226C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#0F3443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d226c;
/* rgb */ color: rgb(45, 34, 108);
/* oklch */ color: oklch(31.5% 0.123 283.6);
Tailwind
colors: {
  custom: {
    50: '#6d5e97',
    500: '#2d226c',
    950: '#000000',
  },
}
SCSS
$custom: #2d226c;
$custom-light: #6d5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#2d226c",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 248.919,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31473,
    "c": 0.12267,
    "h": 283.6
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#2D226C
secondary
#93A04A
accent
#DC4CC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2D226C

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

Preview Lab → · Contrast checker → · Palette generator →

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