#2A216E#2A216E

#2A216E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.127 H 281.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2A216E
RGBrgb(42, 33, 110)
HSLhsl(247, 54%, 28%)
HSVhsv(247, 70%, 43%)
CMYKcmyk(61.8%, 70%, 0%, 56.9%)
CIE-LABlab(18.82, 28.23, -43.35)
CIE-LCHlch(18.82, 51.74, 303.07°)
OKLaboklab(31.22% 0.0251 -0.1248)
OKLCHoklch(31.22% 0.127 281.4)
XYZxyz(4.3123, 2.7054, 15.0438)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A216E #656E21
analogous
#213E6E #2A216E #50216E
triadic
#2A216E #6E2A21 #216E2A
tetradic
#2A216E #6E213E #656E21 #216E50
square
#2A216E #6E213E #656E21 #216E50
split-complementary
#2A216E #6E5021 #3E6E21
monochromatic
#090718 #18133F #2A216E #3C2F9D #5243C7

Accessibility & contrast

On white

13.63
#2A216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A216E
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A216E#FFFFFF#000000##FFFFFF
##2A216E1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a216e;
/* rgb */ color: rgb(42, 33, 110);
/* oklch */ color: oklch(31.2% 0.127 281.4);
Tailwind
colors: {
  custom: {
    50: '#6c5d98',
    500: '#2a216e',
    950: '#000000',
  },
}
SCSS
$custom: #2a216e;
$custom-light: #6c5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a216e",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 247.013,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31218,
    "c": 0.1273,
    "h": 281.4
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#2A216E
secondary
#97A249
accent
#DD4BCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A216E

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

Preview Lab → · Contrast checker → · Palette generator →

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