#2A226A#2A226A

#2A226A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.120 H 281.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2A226A
RGBrgb(42, 34, 106)
HSLhsl(247, 51%, 27%)
HSVhsv(247, 68%, 42%)
CMYKcmyk(60.4%, 67.9%, 0%, 58.4%)
CIE-LABlab(18.70, 26.18, -40.96)
CIE-LCHlch(18.70, 48.61, 302.59°)
OKLaboklab(31.01% 0.0246 -0.1178)
OKLCHoklch(31.01% 0.12 281.8)
XYZxyz(4.1276, 2.6766, 13.9320)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A226A #626A22
analogous
#223E6A #2A226A #4E226A
triadic
#2A226A #6A2A22 #226A2A
tetradic
#2A226A #6A223E #626A22 #226A4E
square
#2A226A #6A223E #626A22 #226A4E
split-complementary
#2A226A #6A4E22 #3E6A22
monochromatic
#090717 #18133C #2A226A #3C3198 #5244C3

Accessibility & contrast

On white

13.68
#2A226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A226A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A226A#FFFFFF#000000##FFFFFF
##2A226A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#073442
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a226a;
/* rgb */ color: rgb(42, 34, 106);
/* oklch */ color: oklch(31.0% 0.120 281.8);
Tailwind
colors: {
  custom: {
    50: '#6b5d95',
    500: '#2a226a',
    950: '#000000',
  },
}
SCSS
$custom: #2a226a;
$custom-light: #6b5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2a226a",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 246.667,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.12031,
    "h": 281.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#2A226A
secondary
#949E4A
accent
#DB4DCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A226A

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

Preview Lab → · Contrast checker → · Palette generator →

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