#2D228D#2D228D

#2D228D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.167 H 277.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D228D
RGBrgb(45, 34, 141)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(68.1%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.39, 38.58, -57.18)
CIE-LCHlch(22.39, 68.98, 304.01°)
OKLaboklab(34.77% 0.0228 -0.1651)
OKLCHoklch(34.77% 0.167 277.9)
XYZxyz(6.4604, 3.6245, 25.5533)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D228D #828D22
analogous
#224D8D #2D228D #63228D
triadic
#2D228D #8D2D22 #228D2D
tetradic
#2D228D #8D224D #828D22 #228D63
square
#2D228D #8D224D #828D22 #228D63
split-complementary
#2D228D #8D6322 #4D8D22
monochromatic
#0E0A2A #1D165C #2D228D #3D2EBE #6154D6

Accessibility & contrast

On white

12.17
#2D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D228D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D228D#FFFFFF#000000##FFFFFF
##2D228D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d228d;
/* rgb */ color: rgb(45, 34, 141);
/* oklch */ color: oklch(34.8% 0.167 277.9);
Tailwind
colors: {
  custom: {
    50: '#745faf',
    500: '#2d228d',
    950: '#000000',
  },
}
SCSS
$custom: #2d228d;
$custom-light: #745faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d228d",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 246.168,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.16671,
    "h": 277.9
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#2D228D
secondary
#AFB951
accent
#E444D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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