#2A22AA#2A22AA

#2A22AA is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.203 H 273.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2A22AA
RGBrgb(42, 34, 170)
HSLhsl(244, 67%, 40%)
HSVhsv(244, 80%, 67%)
CMYKcmyk(75.3%, 80%, 0%, 33.3%)
CIE-LABlab(25.37, 47.69, -70.01)
CIE-LCHlch(25.37, 84.71, 304.26°)
OKLaboklab(37.76% 0.0119 -0.2025)
OKLCHoklch(37.76% 0.203 273.4)
XYZxyz(8.7802, 4.5377, 38.4355)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22AA #A2AA22
analogous
#225EAA #2A22AA #6E22AA
triadic
#2A22AA #AA2A22 #22AA2A
tetradic
#2A22AA #AA225E #A2AA22 #22AA6E
square
#2A22AA #AA225E #A2AA22 #22AA6E
split-complementary
#2A22AA #AA6E22 #5EAA22
monochromatic
#110E44 #1D1877 #2A22AA #3D33D6 #6D66E0

Accessibility & contrast

On white

11.01
#2A22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22AA
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22AA#FFFFFF#000000##FFFFFF
##2A22AA1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a22aa;
/* rgb */ color: rgb(42, 34, 170);
/* oklch */ color: oklch(37.8% 0.203 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a61c5',
    500: '#2a22aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a22aa;
$custom-light: #7a61c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22aa",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 243.529,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.37755,
    "c": 0.2029,
    "h": 273.4
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#2A22AA
secondary
#C0C662
accent
#EA3EE0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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