#2A228D#2A228D

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

Color values

HEX#2A228D
RGBrgb(42, 34, 141)
HSLhsl(244, 61%, 34%)
HSVhsv(244, 76%, 55%)
CMYKcmyk(70.2%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.16, 38.24, -57.57)
CIE-LCHlch(22.16, 69.11, 303.59°)
OKLaboklab(34.54% 0.0186 -0.1664)
OKLCHoklch(34.54% 0.167 276.4)
XYZxyz(6.3330, 3.5588, 25.5473)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A228D #858D22
analogous
#22508D #2A228D #60228D
triadic
#2A228D #8D2A22 #228D2A
tetradic
#2A228D #8D2250 #858D22 #228D60
square
#2A228D #8D2250 #858D22 #228D60
split-complementary
#2A228D #8D6022 #508D22
monochromatic
#0D0A2A #1B165C #2A228D #392EBE #5D54D6

Accessibility & contrast

On white

12.27
#2A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A228D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A228D#FFFFFF#000000##FFFFFF
##2A228D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a228d;
/* rgb */ color: rgb(42, 34, 141);
/* oklch */ color: oklch(34.5% 0.167 276.4);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2a228d',
    950: '#000000',
  },
}
SCSS
$custom: #2a228d;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a228d",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 244.486,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34544,
    "c": 0.16742,
    "h": 276.4
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#2A228D
secondary
#B2B951
accent
#E444D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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