#2A418E#2A418E

#2A418E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.131 H 267.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2A418E
RGBrgb(42, 65, 142)
HSLhsl(226, 54%, 36%)
HSVhsv(226, 70%, 56%)
CMYKcmyk(70.4%, 54.2%, 0%, 44.3%)
CIE-LABlab(29.97, 18.43, -45.42)
CIE-LCHlch(29.97, 49.01, 292.09°)
OKLaboklab(40.31% -0.0054 -0.1306)
OKLCHoklch(40.31% 0.131 267.6)
XYZxyz(7.7259, 6.2251, 26.3803)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A418E #8E772A
analogous
#2A738E #2A418E #452A8E
triadic
#2A418E #8E2A41 #418E2A
tetradic
#2A418E #8E2A73 #8E772A #2A8E45
square
#2A418E #8E2A73 #8E772A #2A8E45
split-complementary
#2A418E #8E452A #738E2A
monochromatic
#0E1630 #1C2B5F #2A418E #3857BD #627BD1

Accessibility & contrast

On white

9.35
#2A418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A418E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A418E#FFFFFF#000000##FFFFFF
##2A418E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a418e;
/* rgb */ color: rgb(42, 65, 142);
/* oklch */ color: oklch(40.3% 0.131 267.6);
Tailwind
colors: {
  custom: {
    50: '#7075b0',
    500: '#2a418e',
    950: '#000000',
  },
}
SCSS
$custom: #2a418e;
$custom-light: #7075b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a418e",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 226.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4031,
    "c": 0.13067,
    "h": 267.6
  },
  "luminance": 0.06226
}

Semantic roles & 50–950 ramp

primary
#2A418E
secondary
#B6A25D
accent
#BC4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A418E

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

Preview Lab → · Contrast checker → · Palette generator →

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