#2A198D#2A198D

#2A198D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.176 H 277.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2A198D
RGBrgb(42, 25, 141)
HSLhsl(249, 70%, 33%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(70.2%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.48, 43.04, -60.34)
CIE-LCHlch(20.48, 74.12, 305.50°)
OKLaboklab(33.37% 0.0233 -0.1743)
OKLCHoklch(33.37% 0.176 277.6)
XYZxyz(6.1086, 3.1100, 25.4725)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198D #7C8D19
analogous
#19428D #2A198D #64198D
triadic
#2A198D #8D2A19 #198D2A
tetradic
#2A198D #8D1942 #7C8D19 #198D64
square
#2A198D #8D1942 #7C8D19 #198D64
split-complementary
#2A198D #8D6419 #428D19
monochromatic
#0B0725 #1B1059 #2A198D #3922C1 #5943DE

Accessibility & contrast

On white

12.95
#2A198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A198D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198D#FFFFFF#000000##FFFFFF
##2A198D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a198d;
/* rgb */ color: rgb(42, 25, 141);
/* oklch */ color: oklch(33.4% 0.176 277.6);
Tailwind
colors: {
  custom: {
    50: '#745ab0',
    500: '#2a198d',
    950: '#000000',
  },
}
SCSS
$custom: #2a198d;
$custom-light: #745ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198d",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 248.793,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.17588,
    "h": 277.6
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A198D

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

Preview Lab → · Contrast checker → · Palette generator →

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