#2A408C#2A408C

#2A408C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.129 H 267.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2A408C
RGBrgb(42, 64, 140)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(70%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.54, 18.35, -44.88)
CIE-LCHlch(29.54, 48.49, 292.23°)
OKLaboklab(39.94% -0.0046 -0.129)
OKLCHoklch(39.94% 0.129 267.9)
XYZxyz(7.5202, 6.0518, 25.5776)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A408C #8C762A
analogous
#2A718C #2A408C #452A8C
triadic
#2A408C #8C2A40 #408C2A
tetradic
#2A408C #8C2A71 #8C762A #2A8C45
square
#2A408C #8C2A71 #8C762A #2A8C45
split-complementary
#2A408C #8C452A #718C2A
monochromatic
#0E152E #1C2A5D #2A408C #3856BB #617AD0

Accessibility & contrast

On white

9.50
#2A408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A408C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A408C#FFFFFF#000000##FFFFFF
##2A408C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a408c;
/* rgb */ color: rgb(42, 64, 140);
/* oklch */ color: oklch(39.9% 0.129 267.9);
Tailwind
colors: {
  custom: {
    50: '#7074ae',
    500: '#2a408c',
    950: '#000000',
  },
}
SCSS
$custom: #2a408c;
$custom-light: #7074ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a408c",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 226.531,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39938,
    "c": 0.12908,
    "h": 267.9
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#2A408C
secondary
#B5A15C
accent
#BC4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A408C

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

Preview Lab → · Contrast checker → · Palette generator →

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