#2A418B#2A418B

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

Color values

HEX#2A418B
RGBrgb(42, 65, 139)
HSLhsl(226, 54%, 35%)
HSVhsv(226, 70%, 55%)
CMYKcmyk(69.8%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.75, 17.28, -43.92)
CIE-LCHlch(29.75, 47.20, 291.48°)
OKLaboklab(40.07% -0.0057 -0.1262)
OKLCHoklch(40.07% 0.126 267.4)
XYZxyz(7.5037, 6.1362, 25.2100)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A418B #8B742A
analogous
#2A718B #2A418B #432A8B
triadic
#2A418B #8B2A41 #418B2A
tetradic
#2A418B #8B2A71 #8B742A #2A8B43
square
#2A418B #8B2A71 #8B742A #2A8B43
split-complementary
#2A418B #8B432A #718B2A
monochromatic
#0E152D #1C2B5C #2A418B #3857BA #607BCF

Accessibility & contrast

On white

9.43
#2A418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A418B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A418B#FFFFFF#000000##FFFFFF
##2A418B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a418b;
/* rgb */ color: rgb(42, 65, 139);
/* oklch */ color: oklch(40.1% 0.126 267.4);
Tailwind
colors: {
  custom: {
    50: '#7075ad',
    500: '#2a418b',
    950: '#000000',
  },
}
SCSS
$custom: #2a418b;
$custom-light: #7075ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a418b",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 225.773,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40074,
    "c": 0.12629,
    "h": 267.4
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#2A418B
secondary
#B5A05C
accent
#BA4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A418B

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

Preview Lab → · Contrast checker → · Palette generator →

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