#2A408E#2A408E

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

Color values

HEX#2A408E
RGBrgb(42, 64, 142)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(70.4%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.69, 19.11, -45.87)
CIE-LCHlch(29.69, 49.70, 292.62°)
OKLaboklab(40.1% -0.0045 -0.1319)
OKLCHoklch(40.1% 0.132 268.1)
XYZxyz(7.6690, 6.1113, 26.3614)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A408E #8E782A
analogous
#2A728E #2A408E #462A8E
triadic
#2A408E #8E2A40 #408E2A
tetradic
#2A408E #8E2A72 #8E782A #2A8E46
square
#2A408E #8E2A72 #8E782A #2A8E46
split-complementary
#2A408E #8E462A #728E2A
monochromatic
#0E1530 #1C2B5F #2A408E #3855BD #627AD1

Accessibility & contrast

On white

9.45
#2A408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A408E
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A408E#FFFFFF#000000##FFFFFF
##2A408E1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a408e;
/* rgb */ color: rgb(42, 64, 142);
/* oklch */ color: oklch(40.1% 0.132 268.1);
Tailwind
colors: {
  custom: {
    50: '#7074b0',
    500: '#2a408e',
    950: '#000000',
  },
}
SCSS
$custom: #2a408e;
$custom-light: #7074b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a408e",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 226.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.13199,
    "h": 268.1
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#2A408E
secondary
#B6A35D
accent
#BD4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A408E

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

Preview Lab → · Contrast checker → · Palette generator →

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