#2A418F#2A418F

#2A418F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.132 H 267.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2A418F
RGBrgb(42, 65, 143)
HSLhsl(226, 55%, 36%)
HSVhsv(226, 71%, 56%)
CMYKcmyk(70.6%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.05, 18.81, -45.91)
CIE-LCHlch(30.05, 49.62, 292.28°)
OKLaboklab(40.39% -0.0053 -0.132)
OKLCHoklch(40.39% 0.132 267.7)
XYZxyz(7.8014, 6.2552, 26.7775)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A418F #8F782A
analogous
#2A748F #2A418F #462A8F
triadic
#2A418F #8F2A41 #418F2A
tetradic
#2A418F #8F2A74 #8F782A #2A8F46
square
#2A418F #8F2A74 #8F782A #2A8F46
split-complementary
#2A418F #8F462A #748F2A
monochromatic
#0E1630 #1C2B60 #2A418F #3857BE #627CD1

Accessibility & contrast

On white

9.33
#2A418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A418F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A418F#FFFFFF#000000##FFFFFF
##2A418F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a418f;
/* rgb */ color: rgb(42, 65, 143);
/* oklch */ color: oklch(40.4% 0.132 267.7);
Tailwind
colors: {
  custom: {
    50: '#7175b0',
    500: '#2a418f',
    950: '#000000',
  },
}
SCSS
$custom: #2a418f;
$custom-light: #7175b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a418f",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 226.337,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4039,
    "c": 0.13212,
    "h": 267.7
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#2A418F
secondary
#B7A35E
accent
#BC4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #2A418F

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

Preview Lab → · Contrast checker → · Palette generator →

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