#2A218C#2A218C

#2A218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.167 H 276.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2A218C
RGBrgb(42, 33, 140)
HSLhsl(245, 62%, 34%)
HSVhsv(245, 76%, 55%)
CMYKcmyk(70%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.85, 38.48, -57.46)
CIE-LCHlch(21.85, 69.15, 303.81°)
OKLaboklab(34.29% 0.0194 -0.166)
OKLCHoklch(34.29% 0.167 276.7)
XYZxyz(6.2308, 3.4728, 25.1478)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A218C #838C21
analogous
#214E8C #2A218C #60218C
triadic
#2A218C #8C2A21 #218C2A
tetradic
#2A218C #8C214E #838C21 #218C60
square
#2A218C #8C214E #838C21 #218C60
split-complementary
#2A218C #8C6021 #4E8C21
monochromatic
#0C0A29 #1B155A #2A218C #392DBE #5D51D6

Accessibility & contrast

On white

12.39
#2A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A218C
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A218C#FFFFFF#000000##FFFFFF
##2A218C1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a218c;
/* rgb */ color: rgb(42, 33, 140);
/* oklch */ color: oklch(34.3% 0.167 276.7);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2a218c',
    950: '#000000',
  },
}
SCSS
$custom: #2a218c;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a218c",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 245.047,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.16717,
    "h": 276.7
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#2A218C
secondary
#B1B94F
accent
#E543D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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