#2A229C#2A229C

#2A229C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.186 H 274.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2A229C
RGBrgb(42, 34, 156)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 61%)
CMYKcmyk(73.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.79, 43.20, -64.13)
CIE-LCHlch(23.79, 77.32, 303.96°)
OKLaboklab(36.18% 0.0152 -0.1855)
OKLCHoklch(36.18% 0.186 274.7)
XYZxyz(7.5256, 4.0359, 31.8284)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A229C #949C22
analogous
#22579C #2A229C #67229C
triadic
#2A229C #9C2A22 #229C2A
tetradic
#2A229C #9C2257 #949C22 #229C67
square
#2A229C #9C2257 #949C22 #229C67
split-complementary
#2A229C #9C6722 #579C22
monochromatic
#0F0C38 #1C176A #2A229C #382DCE #655DDC

Accessibility & contrast

On white

11.62
#2A229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A229C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A229C#FFFFFF#000000##FFFFFF
##2A229C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a229c;
/* rgb */ color: rgb(42, 34, 156);
/* oklch */ color: oklch(36.2% 0.186 274.7);
Tailwind
colors: {
  custom: {
    50: '#7660ba',
    500: '#2a229c',
    950: '#000000',
  },
}
SCSS
$custom: #2a229c;
$custom-light: #7660ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a229c",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 243.934,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.1861,
    "h": 274.7
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#2A229C
secondary
#B9C05A
accent
#E741DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A229C

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

Preview Lab → · Contrast checker → · Palette generator →

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