#2A198E#2A198E

#2A198E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.177 H 277.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2A198E
RGBrgb(42, 25, 142)
HSLhsl(249, 70%, 33%)
HSVhsv(249, 82%, 56%)
CMYKcmyk(70.4%, 82.4%, 0%, 44.3%)
CIE-LABlab(20.60, 43.35, -60.77)
CIE-LCHlch(20.60, 74.65, 305.50°)
OKLaboklab(33.48% 0.023 -0.1756)
OKLCHoklch(33.48% 0.177 277.5)
XYZxyz(6.1834, 3.1399, 25.8661)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198E #7D8E19
analogous
#19428E #2A198E #64198E
triadic
#2A198E #8E2A19 #198E2A
tetradic
#2A198E #8E1942 #7D8E19 #198E64
square
#2A198E #8E1942 #7D8E19 #198E64
split-complementary
#2A198E #8E6419 #428E19
monochromatic
#0B0726 #1B105A #2A198E #3922C2 #5A43DE

Accessibility & contrast

On white

12.90
#2A198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A198E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198E#FFFFFF#000000##FFFFFF
##2A198E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a198e;
/* rgb */ color: rgb(42, 25, 142);
/* oklch */ color: oklch(33.5% 0.177 277.5);
Tailwind
colors: {
  custom: {
    50: '#745ab0',
    500: '#2a198e',
    950: '#000000',
  },
}
SCSS
$custom: #2a198e;
$custom-light: #745ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198e",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 248.718,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.17709,
    "h": 277.5
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#2A198E
secondary
#ADBF44
accent
#ED3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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