#2A208B#2A208B

#2A208B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.167 H 277.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2A208B
RGBrgb(42, 32, 139)
HSLhsl(246, 63%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(69.8%, 77%, 0%, 45.5%)
CIE-LABlab(21.54, 38.71, -57.34)
CIE-LCHlch(21.54, 69.18, 304.02°)
OKLaboklab(34.04% 0.0202 -0.1657)
OKLCHoklch(34.04% 0.167 277)
XYZxyz(6.1300, 3.3888, 24.7521)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A208B #818B20
analogous
#204B8B #2A208B #5F208B
triadic
#2A208B #8B2A20 #208B2A
tetradic
#2A208B #8B204B #818B20 #208B5F
square
#2A208B #8B204B #818B20 #208B5F
split-complementary
#2A208B #8B5F20 #4B8B20
monochromatic
#0C0928 #1B1559 #2A208B #392BBD #5C4FD6

Accessibility & contrast

On white

12.52
#2A208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A208B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A208B#FFFFFF#000000##FFFFFF
##2A208B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a208b;
/* rgb */ color: rgb(42, 32, 139);
/* oklch */ color: oklch(34.0% 0.167 277.0);
Tailwind
colors: {
  custom: {
    50: '#735eae',
    500: '#2a208b',
    950: '#000000',
  },
}
SCSS
$custom: #2a208b;
$custom-light: #735eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a208b",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 245.607,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34044,
    "c": 0.16692,
    "h": 277
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#2A208B
secondary
#AFBA4D
accent
#E642D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A208B

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

Preview Lab → · Contrast checker → · Palette generator →

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