#2A408F#2A408F

#2A408F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.133 H 268.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2A408F
RGBrgb(42, 64, 143)
HSLhsl(227, 55%, 36%)
HSVhsv(227, 71%, 56%)
CMYKcmyk(70.6%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.77, 19.50, -46.37)
CIE-LCHlch(29.77, 50.30, 292.80°)
OKLaboklab(40.18% -0.0044 -0.1334)
OKLCHoklch(40.18% 0.133 268.1)
XYZxyz(7.7445, 6.1414, 26.7586)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A408F #8F792A
analogous
#2A738F #2A408F #472A8F
triadic
#2A408F #8F2A40 #408F2A
tetradic
#2A408F #8F2A73 #8F792A #2A8F47
square
#2A408F #8F2A73 #8F792A #2A8F47
split-complementary
#2A408F #8F472A #738F2A
monochromatic
#0E1630 #1C2B60 #2A408F #3855BE #627AD1

Accessibility & contrast

On white

9.42
#2A408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A408F
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A408F#FFFFFF#000000##FFFFFF
##2A408F1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a408f;
/* rgb */ color: rgb(42, 64, 143);
/* oklch */ color: oklch(40.2% 0.133 268.1);
Tailwind
colors: {
  custom: {
    50: '#7174b0',
    500: '#2a408f',
    950: '#000000',
  },
}
SCSS
$custom: #2a408f;
$custom-light: #7174b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a408f",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 226.931,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.13344,
    "h": 268.1
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#2A408F
secondary
#B7A45E
accent
#BE4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #2A408F

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

Preview Lab → · Contrast checker → · Palette generator →

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