#2A208F#2A208F

#2A208F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.172 H 276.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2A208F
RGBrgb(42, 32, 143)
HSLhsl(245, 63%, 34%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(70.6%, 77.6%, 0%, 43.9%)
CIE-LABlab(21.97, 40.03, -59.12)
CIE-LCHlch(21.97, 71.40, 304.11°)
OKLaboklab(34.48% 0.0193 -0.1709)
OKLCHoklch(34.48% 0.172 276.4)
XYZxyz(6.4277, 3.5078, 26.3196)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A208F #858F20
analogous
#204E8F #2A208F #62208F
triadic
#2A208F #8F2A20 #208F2A
tetradic
#2A208F #8F204E #858F20 #208F62
square
#2A208F #8F204E #858F20 #208F62
split-complementary
#2A208F #8F6220 #4E8F20
monochromatic
#0D0A2B #1B155D #2A208F #392BC1 #5D51D8

Accessibility & contrast

On white

12.34
#2A208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A208F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A208F#FFFFFF#000000##FFFFFF
##2A208F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a208f;
/* rgb */ color: rgb(42, 32, 143);
/* oklch */ color: oklch(34.5% 0.172 276.4);
Tailwind
colors: {
  custom: {
    50: '#735eb1',
    500: '#2a208f',
    950: '#000000',
  },
}
SCSS
$custom: #2a208f;
$custom-light: #735eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a208f",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 245.405,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34479,
    "c": 0.17194,
    "h": 276.4
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#2A208F
secondary
#B2BB4F
accent
#E641D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A208F

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

Preview Lab → · Contrast checker → · Palette generator →

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