#2A408D#2A408D

#2A408D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.131 H 268.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A408D
RGBrgb(42, 64, 141)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(70.2%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.62, 18.73, -45.38)
CIE-LCHlch(29.62, 49.09, 292.43°)
OKLaboklab(40.02% -0.0045 -0.1305)
OKLCHoklch(40.02% 0.131 268)
XYZxyz(7.5943, 6.0814, 25.9677)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A408D #8D772A
analogous
#2A718D #2A408D #462A8D
triadic
#2A408D #8D2A40 #408D2A
tetradic
#2A408D #8D2A71 #8D772A #2A8D46
square
#2A408D #8D2A71 #8D772A #2A8D46
split-complementary
#2A408D #8D462A #718D2A
monochromatic
#0E152F #1C2B5E #2A408D #3855BC #617AD0

Accessibility & contrast

On white

9.47
#2A408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A408D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A408D#FFFFFF#000000##FFFFFF
##2A408D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a408d;
/* rgb */ color: rgb(42, 64, 141);
/* oklch */ color: oklch(40.0% 0.131 268.0);
Tailwind
colors: {
  custom: {
    50: '#7074af',
    500: '#2a408d',
    950: '#000000',
  },
}
SCSS
$custom: #2a408d;
$custom-light: #7074af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a408d",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 226.667,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40018,
    "c": 0.13054,
    "h": 268
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#2A408D
secondary
#B6A25D
accent
#BD4ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A408D

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

Preview Lab → · Contrast checker → · Palette generator →

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