#2A198A#2A198A

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

Color values

HEX#2A198A
RGBrgb(42, 25, 138)
HSLhsl(249, 69%, 32%)
HSVhsv(249, 82%, 54%)
CMYKcmyk(69.6%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.13, 42.10, -59.04)
CIE-LCHlch(20.13, 72.51, 305.49°)
OKLaboklab(33.03% 0.0242 -0.1705)
OKLCHoklch(33.03% 0.172 278.1)
XYZxyz(5.8884, 3.0220, 24.3128)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198A #798A19
analogous
#19408A #2A198A #63198A
triadic
#2A198A #8A2A19 #198A2A
tetradic
#2A198A #8A1940 #798A19 #198A63
square
#2A198A #8A1940 #798A19 #198A63
split-complementary
#2A198A #8A6319 #408A19
monochromatic
#0A0622 #1A1056 #2A198A #3A22BE #5841DD

Accessibility & contrast

On white

13.09
#2A198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A198A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198A#FFFFFF#000000##FFFFFF
##2A198A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a198a;
/* rgb */ color: rgb(42, 25, 138);
/* oklch */ color: oklch(33.0% 0.172 278.1);
Tailwind
colors: {
  custom: {
    50: '#735aad',
    500: '#2a198a',
    950: '#000000',
  },
}
SCSS
$custom: #2a198a;
$custom-light: #735aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198a",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 249.027,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33026,
    "c": 0.17226,
    "h": 278.1
  },
  "luminance": 0.03022
}

Semantic roles & 50–950 ramp

primary
#2A198A
secondary
#ABBD42
accent
#EC3CD2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A198A

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

Preview Lab → · Contrast checker → · Palette generator →

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