#2A219C#2A219C

#2A219C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.187 H 274.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2A219C
RGBrgb(42, 33, 156)
HSLhsl(244, 65%, 37%)
HSVhsv(244, 79%, 61%)
CMYKcmyk(73.1%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.60, 43.73, -64.44)
CIE-LCHlch(23.60, 77.88, 304.16°)
OKLaboklab(36.05% 0.0157 -0.1864)
OKLCHoklch(36.05% 0.187 274.8)
XYZxyz(7.4975, 3.9795, 31.8190)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A219C #939C21
analogous
#21569C #2A219C #67219C
triadic
#2A219C #9C2A21 #219C2A
tetradic
#2A219C #9C2156 #939C21 #219C67
square
#2A219C #9C2156 #939C21 #219C67
split-complementary
#2A219C #9C6721 #569C21
monochromatic
#0F0C37 #1C1669 #2A219C #382CCF #655BDC

Accessibility & contrast

On white

11.69
#2A219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A219C
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A219C#FFFFFF#000000##FFFFFF
##2A219C1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a219c;
/* rgb */ color: rgb(42, 33, 156);
/* oklch */ color: oklch(36.1% 0.187 274.8);
Tailwind
colors: {
  custom: {
    50: '#765fba',
    500: '#2a219c',
    950: '#000000',
  },
}
SCSS
$custom: #2a219c;
$custom-light: #765fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a219c",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 244.39,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36051,
    "c": 0.18702,
    "h": 274.8
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#2A219C
secondary
#B9C158
accent
#E840DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A219C

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

Preview Lab → · Contrast checker → · Palette generator →

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