#2A418C#2A418C

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

Color values

HEX#2A418C
RGBrgb(42, 65, 140)
HSLhsl(226, 54%, 36%)
HSVhsv(226, 70%, 55%)
CMYKcmyk(70%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.83, 17.66, -44.42)
CIE-LCHlch(29.83, 47.81, 291.68°)
OKLaboklab(40.15% -0.0056 -0.1276)
OKLCHoklch(40.15% 0.128 267.5)
XYZxyz(7.5771, 6.1655, 25.5966)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A418C #8C752A
analogous
#2A728C #2A418C #442A8C
triadic
#2A418C #8C2A41 #418C2A
tetradic
#2A418C #8C2A72 #8C752A #2A8C44
square
#2A418C #8C2A72 #8C752A #2A8C44
split-complementary
#2A418C #8C442A #728C2A
monochromatic
#0E152E #1C2B5D #2A418C #3857BB #617BD0

Accessibility & contrast

On white

9.40
#2A418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A418C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A418C#FFFFFF#000000##FFFFFF
##2A418C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a418c;
/* rgb */ color: rgb(42, 65, 140);
/* oklch */ color: oklch(40.2% 0.128 267.5);
Tailwind
colors: {
  custom: {
    50: '#7075ae',
    500: '#2a418c',
    950: '#000000',
  },
}
SCSS
$custom: #2a418c;
$custom-light: #7075ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a418c",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 225.918,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.12775,
    "h": 267.5
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A418C

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

Preview Lab → · Contrast checker → · Palette generator →

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