#2A178C#2A178C

#2A178C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.176 H 278.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2A178C
RGBrgb(42, 23, 140)
HSLhsl(250, 72%, 32%)
HSVhsv(250, 84%, 55%)
CMYKcmyk(70%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.04, 43.68, -60.45)
CIE-LCHlch(20.04, 74.58, 305.85°)
OKLaboklab(33.03% 0.0245 -0.1746)
OKLCHoklch(33.03% 0.176 278)
XYZxyz(5.9933, 2.9980, 25.0687)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A178C #798C17
analogous
#173E8C #2A178C #65178C
triadic
#2A178C #8C2A17 #178C2A
tetradic
#2A178C #8C173E #798C17 #178C65
square
#2A178C #8C173E #798C17 #178C65
split-complementary
#2A178C #8C6517 #3E8C17
monochromatic
#0A0623 #1A0E57 #2A178C #3A20C1 #583EDF

Accessibility & contrast

On white

13.13
#2A178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A178C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A178C#FFFFFF#000000##FFFFFF
##2A178C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a178c;
/* rgb */ color: rgb(42, 23, 140);
/* oklch */ color: oklch(33.0% 0.176 278.0);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2a178c',
    950: '#000000',
  },
}
SCSS
$custom: #2a178c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a178c",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 249.744,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.17633,
    "h": 278
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#2A178C
secondary
#ABBF3F
accent
#EF39D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A178C

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

Preview Lab → · Contrast checker → · Palette generator →

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