#2A218F#2A218F

#2A218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.171 H 276.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2A218F
RGBrgb(42, 33, 143)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 77%, 56%)
CMYKcmyk(70.6%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.17, 39.48, -58.79)
CIE-LCHlch(22.17, 70.82, 303.88°)
OKLaboklab(34.62% 0.0187 -0.1699)
OKLCHoklch(34.62% 0.171 276.3)
XYZxyz(6.4550, 3.5625, 26.3287)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A218F #868F21
analogous
#214F8F #2A218F #61218F
triadic
#2A218F #8F2A21 #218F2A
tetradic
#2A218F #8F214F #868F21 #218F61
square
#2A218F #8F214F #868F21 #218F61
split-complementary
#2A218F #8F6121 #4F8F21
monochromatic
#0D0A2C #1B165D #2A218F #392CC1 #5E53D7

Accessibility & contrast

On white

12.26
#2A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A218F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A218F#FFFFFF#000000##FFFFFF
##2A218F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a218f;
/* rgb */ color: rgb(42, 33, 143);
/* oklch */ color: oklch(34.6% 0.171 276.3);
Tailwind
colors: {
  custom: {
    50: '#735eb1',
    500: '#2a218f',
    950: '#000000',
  },
}
SCSS
$custom: #2a218f;
$custom-light: #735eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a218f",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 244.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34618,
    "c": 0.17096,
    "h": 276.3
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#2A218F
secondary
#B2BB51
accent
#E642D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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