#2A198F#2A198F

#2A198F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.178 H 277.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2A198F
RGBrgb(42, 25, 143)
HSLhsl(249, 70%, 33%)
HSVhsv(249, 83%, 56%)
CMYKcmyk(70.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(20.71, 43.66, -61.20)
CIE-LCHlch(20.71, 75.18, 305.51°)
OKLaboklab(33.6% 0.0227 -0.1768)
OKLCHoklch(33.6% 0.178 277.3)
XYZxyz(6.2588, 3.1701, 26.2633)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198F #7E8F19
analogous
#19438F #2A198F #65198F
triadic
#2A198F #8F2A19 #198F2A
tetradic
#2A198F #8F1943 #7E8F19 #198F65
square
#2A198F #8F1943 #7E8F19 #198F65
split-complementary
#2A198F #8F6519 #438F19
monochromatic
#0B0727 #1B105B #2A198F #3922C3 #5A44DE

Accessibility & contrast

On white

12.85
#2A198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A198F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198F#FFFFFF#000000##FFFFFF
##2A198F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a198f;
/* rgb */ color: rgb(42, 25, 143);
/* oklch */ color: oklch(33.6% 0.178 277.3);
Tailwind
colors: {
  custom: {
    50: '#745ab1',
    500: '#2a198f',
    950: '#000000',
  },
}
SCSS
$custom: #2a198f;
$custom-light: #745ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198f",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 248.644,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33599,
    "c": 0.17828,
    "h": 277.3
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#2A198F
secondary
#AEBF44
accent
#ED3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A198F

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

Preview Lab → · Contrast checker → · Palette generator →

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