#2A228E#2A228E

#2A228E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.169 H 276.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2A228E
RGBrgb(42, 34, 142)
HSLhsl(244, 61%, 35%)
HSVhsv(244, 76%, 56%)
CMYKcmyk(70.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.26, 38.57, -58.02)
CIE-LCHlch(22.26, 69.67, 303.62°)
OKLaboklab(34.65% 0.0184 -0.1677)
OKLCHoklch(34.65% 0.169 276.3)
XYZxyz(6.4078, 3.5887, 25.9409)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A228E #868E22
analogous
#22508E #2A228E #60228E
triadic
#2A228E #8E2A22 #228E2A
tetradic
#2A228E #8E2250 #868E22 #228E60
square
#2A228E #8E2250 #868E22 #228E60
split-complementary
#2A228E #8E6022 #508E22
monochromatic
#0D0A2B #1B165D #2A228E #392EBF #5E54D6

Accessibility & contrast

On white

12.22
#2A228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A228E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A228E#FFFFFF#000000##FFFFFF
##2A228E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a228e;
/* rgb */ color: rgb(42, 34, 142);
/* oklch */ color: oklch(34.7% 0.169 276.3);
Tailwind
colors: {
  custom: {
    50: '#735fb0',
    500: '#2a228e',
    950: '#000000',
  },
}
SCSS
$custom: #2a228e;
$custom-light: #735fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a228e",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 244.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34651,
    "c": 0.16868,
    "h": 276.3
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#2A228E
secondary
#B2BA52
accent
#E443D9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A228E

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

Preview Lab → · Contrast checker → · Palette generator →

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