#2A226D#2A226D

#2A226D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.125 H 281.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2A226D
RGBrgb(42, 34, 109)
HSLhsl(246, 52%, 28%)
HSVhsv(246, 69%, 43%)
CMYKcmyk(61.5%, 68.8%, 0%, 57.3%)
CIE-LABlab(18.97, 27.23, -42.46)
CIE-LCHlch(18.97, 50.45, 302.67°)
OKLaboklab(31.3% 0.0243 -0.1222)
OKLCHoklch(31.3% 0.125 281.2)
XYZxyz(4.2863, 2.7401, 14.7681)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A226D #656D22
analogous
#223F6D #2A226D #4F226D
triadic
#2A226D #6D2A22 #226D2A
tetradic
#2A226D #6D223F #656D22 #226D4F
square
#2A226D #6D223F #656D22 #226D4F
split-complementary
#2A226D #6D4F22 #3F6D22
monochromatic
#090717 #18133E #2A226D #3C319C #5245C5

Accessibility & contrast

On white

13.57
#2A226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A226D
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A226D#FFFFFF#000000##FFFFFF
##2A226D1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#023544
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a226d;
/* rgb */ color: rgb(42, 34, 109);
/* oklch */ color: oklch(31.3% 0.125 281.2);
Tailwind
colors: {
  custom: {
    50: '#6c5e98',
    500: '#2a226d',
    950: '#000000',
  },
}
SCSS
$custom: #2a226d;
$custom-light: #6c5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a226d",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 246.4,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31296,
    "c": 0.12457,
    "h": 281.2
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#2A226D
secondary
#97A14A
accent
#DC4CCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A226D

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

Preview Lab → · Contrast checker → · Palette generator →

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