#2A22A6#2A22A6

#2A22A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.198 H 273.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2A22A6
RGBrgb(42, 34, 166)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 80%, 65%)
CMYKcmyk(74.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(24.92, 46.42, -68.35)
CIE-LCHlch(24.92, 82.62, 304.18°)
OKLaboklab(37.3% 0.0129 -0.1977)
OKLCHoklch(37.3% 0.198 273.7)
XYZxyz(8.4075, 4.3886, 36.4730)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A6 #9EA622
analogous
#225CA6 #2A22A6 #6C22A6
triadic
#2A22A6 #A62A22 #22A62A
tetradic
#2A22A6 #A6225C #9EA622 #22A66C
square
#2A22A6 #A6225C #9EA622 #22A66C
split-complementary
#2A22A6 #A66C22 #5CA622
monochromatic
#100D40 #1D1873 #2A22A6 #3A30D5 #6B63DF

Accessibility & contrast

On white

11.18
#2A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A6
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A6#FFFFFF#000000##FFFFFF
##2A22A61.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a22a6;
/* rgb */ color: rgb(42, 34, 166);
/* oklch */ color: oklch(37.3% 0.198 273.7);
Tailwind
colors: {
  custom: {
    50: '#7960c2',
    500: '#2a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a6;
$custom-light: #7960c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a6",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 243.636,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.19816,
    "h": 273.7
  },
  "luminance": 0.04389
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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