#2A218E#2A218E

#2A218E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.170 H 276.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2A218E
RGBrgb(42, 33, 142)
HSLhsl(245, 62%, 34%)
HSVhsv(245, 77%, 56%)
CMYKcmyk(70.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(22.06, 39.14, -58.35)
CIE-LCHlch(22.06, 70.26, 303.86°)
OKLaboklab(34.51% 0.019 -0.1686)
OKLCHoklch(34.51% 0.17 276.4)
XYZxyz(6.3796, 3.5324, 25.9316)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A218E #858E21
analogous
#214F8E #2A218E #61218E
triadic
#2A218E #8E2A21 #218E2A
tetradic
#2A218E #8E214F #858E21 #218E61
square
#2A218E #8E214F #858E21 #218E61
split-complementary
#2A218E #8E6121 #4F8E21
monochromatic
#0D0A2B #1B155C #2A218E #392DC0 #5D52D7

Accessibility & contrast

On white

12.31
#2A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A218E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A218E#FFFFFF#000000##FFFFFF
##2A218E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a218e;
/* rgb */ color: rgb(42, 33, 142);
/* oklch */ color: oklch(34.5% 0.170 276.4);
Tailwind
colors: {
  custom: {
    50: '#735eb0',
    500: '#2a218e',
    950: '#000000',
  },
}
SCSS
$custom: #2a218e;
$custom-light: #735eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a218e",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 244.954,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.1697,
    "h": 276.4
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#2A218E
secondary
#B2BA50
accent
#E542D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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