#2A22A0#2A22A0

#2A22A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.191 H 274.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2A22A0
RGBrgb(42, 34, 160)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 63%)
CMYKcmyk(73.8%, 78.8%, 0%, 37.3%)
CIE-LABlab(24.24, 44.49, -65.83)
CIE-LCHlch(24.24, 79.46, 304.05°)
OKLaboklab(36.63% 0.0143 -0.1904)
OKLCHoklch(36.63% 0.191 274.3)
XYZxyz(7.8699, 4.1736, 33.6417)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A0 #98A022
analogous
#2259A0 #2A22A0 #6922A0
triadic
#2A22A0 #A02A22 #22A02A
tetradic
#2A22A0 #A02259 #98A022 #22A069
square
#2A22A0 #A02259 #98A022 #22A069
split-complementary
#2A22A0 #A06922 #59A022
monochromatic
#100D3B #1D176E #2A22A0 #372DD2 #675FDD

Accessibility & contrast

On white

11.45
#2A22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A0
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A0#FFFFFF#000000##FFFFFF
##2A22A01.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a22a0;
/* rgb */ color: rgb(42, 34, 160);
/* oklch */ color: oklch(36.6% 0.191 274.3);
Tailwind
colors: {
  custom: {
    50: '#7760bd',
    500: '#2a22a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a0;
$custom-light: #7760bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a0",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 243.81,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36627,
    "c": 0.19095,
    "h": 274.3
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#2A22A0
secondary
#BBC25C
accent
#E840DD
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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