#2A216F#2A216F

#2A216F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.129 H 281.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2A216F
RGBrgb(42, 33, 111)
HSLhsl(247, 54%, 28%)
HSVhsv(247, 70%, 44%)
CMYKcmyk(62.2%, 70.3%, 0%, 56.5%)
CIE-LABlab(18.92, 28.58, -43.85)
CIE-LCHlch(18.92, 52.34, 303.09°)
OKLaboklab(31.31% 0.025 -0.1262)
OKLCHoklch(31.31% 0.129 281.2)
XYZxyz(4.3670, 2.7273, 15.3322)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A216F #666F21
analogous
#213F6F #2A216F #51216F
triadic
#2A216F #6F2A21 #216F2A
tetradic
#2A216F #6F213F #666F21 #216F51
square
#2A216F #6F213F #666F21 #216F51
split-complementary
#2A216F #6F5121 #3F6F21
monochromatic
#090718 #181340 #2A216F #3C2F9E #5243C7

Accessibility & contrast

On white

13.59
#2A216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A216F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A216F#FFFFFF#000000##FFFFFF
##2A216F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a216f;
/* rgb */ color: rgb(42, 33, 111);
/* oklch */ color: oklch(31.3% 0.129 281.2);
Tailwind
colors: {
  custom: {
    50: '#6c5d99',
    500: '#2a216f',
    950: '#000000',
  },
}
SCSS
$custom: #2a216f;
$custom-light: #6c5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a216f",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 246.923,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31314,
    "c": 0.12869,
    "h": 281.2
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#2A216F
secondary
#98A349
accent
#DE4ACD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A216F

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

Preview Lab → · Contrast checker → · Palette generator →

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