#2A198C#2A198C

#2A198C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.175 H 277.8°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2A198C
RGBrgb(42, 25, 140)
HSLhsl(249, 70%, 32%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(70%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.36, 42.73, -59.91)
CIE-LCHlch(20.36, 73.59, 305.50°)
OKLaboklab(33.26% 0.0236 -0.1731)
OKLCHoklch(33.26% 0.175 277.8)
XYZxyz(6.0346, 3.0804, 25.0824)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198C #7B8C19
analogous
#19418C #2A198C #64198C
triadic
#2A198C #8C2A19 #198C2A
tetradic
#2A198C #8C1941 #7B8C19 #198C64
square
#2A198C #8C1941 #7B8C19 #198C64
split-complementary
#2A198C #8C6419 #418C19
monochromatic
#0B0624 #1A1058 #2A198C #3A22C0 #5942DD

Accessibility & contrast

On white

12.99
#2A198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A198C
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198C#FFFFFF#000000##FFFFFF
##2A198C1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a198c;
/* rgb */ color: rgb(42, 25, 140);
/* oklch */ color: oklch(33.3% 0.175 277.8);
Tailwind
colors: {
  custom: {
    50: '#735aaf',
    500: '#2a198c',
    950: '#000000',
  },
}
SCSS
$custom: #2a198c;
$custom-light: #735aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198c",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 248.87,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33255,
    "c": 0.17468,
    "h": 277.8
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#2A198C
secondary
#ACBE43
accent
#ED3BD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A198C

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

Preview Lab → · Contrast checker → · Palette generator →

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