#2A208A#2A208A

#2A208A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.166 H 277.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2A208A
RGBrgb(42, 32, 138)
HSLhsl(246, 62%, 33%)
HSVhsv(246, 77%, 54%)
CMYKcmyk(69.6%, 76.8%, 0%, 45.9%)
CIE-LABlab(21.43, 38.38, -56.89)
CIE-LCHlch(21.43, 68.63, 304.00°)
OKLaboklab(33.94% 0.0204 -0.1644)
OKLCHoklch(33.94% 0.166 277.1)
XYZxyz(6.0573, 3.3597, 24.3691)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A208A #808A20
analogous
#204B8A #2A208A #5F208A
triadic
#2A208A #8A2A20 #208A2A
tetradic
#2A208A #8A204B #808A20 #208A5F
square
#2A208A #8A204B #808A20 #208A5F
split-complementary
#2A208A #8A5F20 #4B8A20
monochromatic
#0C0927 #1B1458 #2A208A #392CBC #5B4ED6

Accessibility & contrast

On white

12.56
#2A208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A208A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A208A#FFFFFF#000000##FFFFFF
##2A208A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a208a;
/* rgb */ color: rgb(42, 32, 138);
/* oklch */ color: oklch(33.9% 0.166 277.1);
Tailwind
colors: {
  custom: {
    50: '#725dad',
    500: '#2a208a',
    950: '#000000',
  },
}
SCSS
$custom: #2a208a;
$custom-light: #725dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a208a",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 245.66,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.16566,
    "h": 277.1
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#2A208A
secondary
#AFB94D
accent
#E542D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A208A

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

Preview Lab → · Contrast checker → · Palette generator →

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