#2A22A7#2A22A7

#2A22A7 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.199 H 273.6°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2A22A7
RGBrgb(42, 34, 167)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 80%, 65%)
CMYKcmyk(74.9%, 79.6%, 0%, 34.5%)
CIE-LABlab(25.03, 46.74, -68.77)
CIE-LCHlch(25.03, 83.15, 304.20°)
OKLaboklab(37.41% 0.0126 -0.1989)
OKLCHoklch(37.41% 0.199 273.6)
XYZxyz(8.4996, 4.4254, 36.9580)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A7 #9FA722
analogous
#225DA7 #2A22A7 #6D22A7
triadic
#2A22A7 #A72A22 #22A72A
tetradic
#2A22A7 #A7225D #9FA722 #22A76D
square
#2A22A7 #A7225D #9FA722 #22A76D
split-complementary
#2A22A7 #A76D22 #5DA722
monochromatic
#100D41 #1D1874 #2A22A7 #3B31D5 #6B64DF

Accessibility & contrast

On white

11.14
#2A22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A7
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A7#FFFFFF#000000##FFFFFF
##2A22A71.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a22a7;
/* rgb */ color: rgb(42, 34, 167);
/* oklch */ color: oklch(37.4% 0.199 273.6);
Tailwind
colors: {
  custom: {
    50: '#7960c2',
    500: '#2a22a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a7;
$custom-light: #7960c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a7",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 243.609,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.19935,
    "h": 273.6
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#2A22A7
secondary
#BFC560
accent
#E93FDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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