#2D228E#2D228E

#2D228E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.168 H 277.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2D228E
RGBrgb(45, 34, 142)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(68.3%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.49, 38.91, -57.63)
CIE-LCHlch(22.49, 69.53, 304.03°)
OKLaboklab(34.88% 0.0225 -0.1665)
OKLCHoklch(34.88% 0.168 277.7)
XYZxyz(6.5351, 3.6544, 25.9469)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D228E #838E22
analogous
#224D8E #2D228E #63228E
triadic
#2D228E #8E2D22 #228E2D
tetradic
#2D228E #8E224D #838E22 #228E63
square
#2D228E #8E224D #838E22 #228E63
split-complementary
#2D228E #8E6322 #4D8E22
monochromatic
#0E0A2B #1D165D #2D228E #3D2EBF #6254D6

Accessibility & contrast

On white

12.13
#2D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D228E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D228E#FFFFFF#000000##FFFFFF
##2D228E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d228e;
/* rgb */ color: rgb(45, 34, 142);
/* oklch */ color: oklch(34.9% 0.168 277.7);
Tailwind
colors: {
  custom: {
    50: '#745fb0',
    500: '#2d228e',
    950: '#000000',
  },
}
SCSS
$custom: #2d228e;
$custom-light: #745fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d228e",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 246.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34875,
    "c": 0.16798,
    "h": 277.7
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#2D228E
secondary
#AFBA52
accent
#E443D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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