#2A179E#2A179E

#2A179E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.197 H 275.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2A179E
RGBrgb(42, 23, 158)
HSLhsl(248, 75%, 35%)
HSVhsv(248, 85%, 62%)
CMYKcmyk(73.4%, 85.4%, 0%, 38%)
CIE-LABlab(22.21, 49.12, -67.98)
CIE-LCHlch(22.21, 83.87, 305.85°)
OKLaboklab(35.15% 0.0189 -0.1965)
OKLCHoklch(35.15% 0.197 275.5)
XYZxyz(7.4308, 3.5729, 32.6392)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A179E #8B9E17
analogous
#17489E #2A179E #6D179E
triadic
#2A179E #9E2A17 #179E2A
tetradic
#2A179E #9E1748 #8B9E17 #179E6D
square
#2A179E #9E1748 #8B9E17 #179E6D
split-complementary
#2A179E #9E6D17 #489E17
monochromatic
#0E0733 #1C0F69 #2A179E #381FD3 #604BE5

Accessibility & contrast

On white

12.25
#2A179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A179E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A179E#FFFFFF#000000##FFFFFF
##2A179E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a179e;
/* rgb */ color: rgb(42, 23, 158);
/* oklch */ color: oklch(35.1% 0.197 275.5);
Tailwind
colors: {
  custom: {
    50: '#785abc',
    500: '#2a179e',
    950: '#000000',
  },
}
SCSS
$custom: #2a179e;
$custom-light: #785abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a179e",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 248.444,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.19738,
    "h": 275.5
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#2A179E
secondary
#B5C64A
accent
#F137D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A179E

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

Preview Lab → · Contrast checker → · Palette generator →

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