#2A219E#2A219E

#2A219E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.189 H 274.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A219E
RGBrgb(42, 33, 158)
HSLhsl(244, 65%, 37%)
HSVhsv(244, 79%, 62%)
CMYKcmyk(73.4%, 79.1%, 0%, 38%)
CIE-LABlab(23.83, 44.37, -65.29)
CIE-LCHlch(23.83, 78.94, 304.20°)
OKLaboklab(36.28% 0.0152 -0.1888)
OKLCHoklch(36.28% 0.189 274.6)
XYZxyz(7.6682, 4.0478, 32.7183)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A219E #959E21
analogous
#21579E #2A219E #69219E
triadic
#2A219E #9E2A21 #219E2A
tetradic
#2A219E #9E2157 #959E21 #219E69
square
#2A219E #9E2157 #959E21 #219E69
split-complementary
#2A219E #9E6921 #579E21
monochromatic
#0F0C39 #1D166B #2A219E #372CD1 #665CDD

Accessibility & contrast

On white

11.60
#2A219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A219E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A219E#FFFFFF#000000##FFFFFF
##2A219E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a219e;
/* rgb */ color: rgb(42, 33, 158);
/* oklch */ color: oklch(36.3% 0.189 274.6);
Tailwind
colors: {
  custom: {
    50: '#775fbc',
    500: '#2a219e',
    950: '#000000',
  },
}
SCSS
$custom: #2a219e;
$custom-light: #775fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a219e",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 244.32,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36275,
    "c": 0.18944,
    "h": 274.6
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#2A219E
secondary
#BAC159
accent
#E83FDC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A219E

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

Preview Lab → · Contrast checker → · Palette generator →

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