#2A208D#2A208D

#2A208D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.169 H 276.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2A208D
RGBrgb(42, 32, 141)
HSLhsl(246, 63%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(70.2%, 77.3%, 0%, 44.7%)
CIE-LABlab(21.75, 39.37, -58.23)
CIE-LCHlch(21.75, 70.29, 304.06°)
OKLaboklab(34.26% 0.0197 -0.1683)
OKLCHoklch(34.26% 0.169 276.7)
XYZxyz(6.2775, 3.4478, 25.5288)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A208D #838D20
analogous
#204D8D #2A208D #61208D
triadic
#2A208D #8D2A20 #208D2A
tetradic
#2A208D #8D204D #838D20 #208D61
square
#2A208D #8D204D #838D20 #208D61
split-complementary
#2A208D #8D6120 #4D8D20
monochromatic
#0C0929 #1B155B #2A208D #392BBF #5D50D7

Accessibility & contrast

On white

12.43
#2A208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A208D
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A208D#FFFFFF#000000##FFFFFF
##2A208D1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a208d;
/* rgb */ color: rgb(42, 32, 141);
/* oklch */ color: oklch(34.3% 0.169 276.7);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2a208d',
    950: '#000000',
  },
}
SCSS
$custom: #2a208d;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a208d",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 245.505,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.16944,
    "h": 276.7
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#2A208D
secondary
#B1BA4E
accent
#E642D7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A208D

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

Preview Lab → · Contrast checker → · Palette generator →

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