#2D2288#2D2288

#2D2288 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.160 H 278.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D2288
RGBrgb(45, 34, 136)
HSLhsl(246, 60%, 33%)
HSVhsv(246, 75%, 53%)
CMYKcmyk(66.9%, 75%, 0%, 46.7%)
CIE-LABlab(21.87, 36.92, -54.91)
CIE-LCHlch(21.87, 66.17, 303.92°)
OKLaboklab(34.24% 0.0239 -0.1585)
OKLCHoklch(34.24% 0.16 278.6)
XYZxyz(6.0967, 3.4790, 23.6380)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2288 #7D8822
analogous
#224A88 #2D2288 #602288
triadic
#2D2288 #882D22 #22882D
tetradic
#2D2288 #88224A #7D8822 #228860
square
#2D2288 #88224A #7D8822 #228860
split-complementary
#2D2288 #886022 #4A8822
monochromatic
#0D0A26 #1D1657 #2D2288 #3D2EB9 #5F51D3

Accessibility & contrast

On white

12.38
#2D2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2288
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2288#FFFFFF#000000##FFFFFF
##2D22881.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2288;
/* rgb */ color: rgb(45, 34, 136);
/* oklch */ color: oklch(34.2% 0.160 278.6);
Tailwind
colors: {
  custom: {
    50: '#735fac',
    500: '#2d2288',
    950: '#000000',
  },
}
SCSS
$custom: #2d2288;
$custom-light: #735fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2288",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 246.471,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34244,
    "c": 0.16033,
    "h": 278.6
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#2D2288
secondary
#ACB74F
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2288

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

Preview Lab → · Contrast checker → · Palette generator →

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