#2A226C#2A226C

#2A226C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.123 H 281.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2A226C
RGBrgb(42, 34, 108)
HSLhsl(246, 52%, 28%)
HSVhsv(246, 69%, 42%)
CMYKcmyk(61.1%, 68.5%, 0%, 57.6%)
CIE-LABlab(18.88, 26.88, -41.96)
CIE-LCHlch(18.88, 49.84, 302.65°)
OKLaboklab(31.2% 0.0244 -0.1207)
OKLCHoklch(31.2% 0.123 281.4)
XYZxyz(4.2328, 2.7187, 14.4862)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A226C #646C22
analogous
#223F6C #2A226C #4F226C
triadic
#2A226C #6C2A22 #226C2A
tetradic
#2A226C #6C223F #646C22 #226C4F
square
#2A226C #6C223F #646C22 #226C4F
split-complementary
#2A226C #6C4F22 #3F6C22
monochromatic
#090717 #18133D #2A226C #3C319B #5244C4

Accessibility & contrast

On white

13.60
#2A226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A226C
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A226C#FFFFFF#000000##FFFFFF
##2A226C1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#033543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a226c;
/* rgb */ color: rgb(42, 34, 108);
/* oklch */ color: oklch(31.2% 0.123 281.4);
Tailwind
colors: {
  custom: {
    50: '#6c5e97',
    500: '#2a226c',
    950: '#000000',
  },
}
SCSS
$custom: #2a226c;
$custom-light: #6c5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#2a226c",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 246.486,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.12315,
    "h": 281.4
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#2A226C
secondary
#96A04A
accent
#DC4CCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A226C

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

Preview Lab → · Contrast checker → · Palette generator →

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