#2A418D#2A418D

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

Color values

HEX#2A418D
RGBrgb(42, 65, 141)
HSLhsl(226, 54%, 36%)
HSVhsv(226, 70%, 55%)
CMYKcmyk(70.2%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.90, 18.05, -44.92)
CIE-LCHlch(29.90, 48.41, 291.89°)
OKLaboklab(40.23% -0.0055 -0.1291)
OKLCHoklch(40.23% 0.129 267.6)
XYZxyz(7.6512, 6.1952, 25.9867)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A418D #8D762A
analogous
#2A728D #2A418D #452A8D
triadic
#2A418D #8D2A41 #418D2A
tetradic
#2A418D #8D2A72 #8D762A #2A8D45
square
#2A418D #8D2A72 #8D762A #2A8D45
split-complementary
#2A418D #8D452A #728D2A
monochromatic
#0E162F #1C2B5E #2A418D #3857BC #617BD0

Accessibility & contrast

On white

9.38
#2A418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A418D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A418D#FFFFFF#000000##FFFFFF
##2A418D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a418d;
/* rgb */ color: rgb(42, 65, 141);
/* oklch */ color: oklch(40.2% 0.129 267.6);
Tailwind
colors: {
  custom: {
    50: '#7075af',
    500: '#2a418d',
    950: '#000000',
  },
}
SCSS
$custom: #2a418d;
$custom-light: #7075af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a418d",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 226.061,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.12922,
    "h": 267.6
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#2A418D
secondary
#B6A15D
accent
#BB4ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A418D

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

Preview Lab → · Contrast checker → · Palette generator →

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