#2A208C#2A208C

#2A208C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 276.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2A208C
RGBrgb(42, 32, 140)
HSLhsl(246, 63%, 34%)
HSVhsv(246, 77%, 55%)
CMYKcmyk(70%, 77.1%, 0%, 45.1%)
CIE-LABlab(21.65, 39.04, -57.79)
CIE-LCHlch(21.65, 69.74, 304.04°)
OKLaboklab(34.15% 0.02 -0.167)
OKLCHoklch(34.15% 0.168 276.8)
XYZxyz(6.2034, 3.4182, 25.1387)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A208C #828C20
analogous
#204C8C #2A208C #60208C
triadic
#2A208C #8C2A20 #208C2A
tetradic
#2A208C #8C204C #828C20 #208C60
square
#2A208C #8C204C #828C20 #208C60
split-complementary
#2A208C #8C6020 #4C8C20
monochromatic
#0C0928 #1B155A #2A208C #392BBE #5C50D7

Accessibility & contrast

On white

12.47
#2A208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A208C
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A208C#FFFFFF#000000##FFFFFF
##2A208C1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a208c;
/* rgb */ color: rgb(42, 32, 140);
/* oklch */ color: oklch(34.2% 0.168 276.8);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2a208c',
    950: '#000000',
  },
}
SCSS
$custom: #2a208c;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a208c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 245.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.16818,
    "h": 276.8
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#2A208C
secondary
#B0BA4E
accent
#E642D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A208C

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

Preview Lab → · Contrast checker → · Palette generator →

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