#2A198B#2A198B

#2A198B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.173 H 277.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2A198B
RGBrgb(42, 25, 139)
HSLhsl(249, 70%, 32%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(69.8%, 82%, 0%, 45.5%)
CIE-LABlab(20.25, 42.42, -59.47)
CIE-LCHlch(20.25, 73.05, 305.50°)
OKLaboklab(33.14% 0.0239 -0.1718)
OKLCHoklch(33.14% 0.173 277.9)
XYZxyz(5.9612, 3.0511, 24.6959)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A198B #7A8B19
analogous
#19418B #2A198B #63198B
triadic
#2A198B #8B2A19 #198B2A
tetradic
#2A198B #8B1941 #7A8B19 #198B63
square
#2A198B #8B1941 #7A8B19 #198B63
split-complementary
#2A198B #8B6319 #418B19
monochromatic
#0B0623 #1A1057 #2A198B #3A22BF #5941DD

Accessibility & contrast

On white

13.04
#2A198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A198B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A198B#FFFFFF#000000##FFFFFF
##2A198B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a198b;
/* rgb */ color: rgb(42, 25, 139);
/* oklch */ color: oklch(33.1% 0.173 277.9);
Tailwind
colors: {
  custom: {
    50: '#735aae',
    500: '#2a198b',
    950: '#000000',
  },
}
SCSS
$custom: #2a198b;
$custom-light: #735aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a198b",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 248.947,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.17348,
    "h": 277.9
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#2A198B
secondary
#ABBE42
accent
#EC3BD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A198B

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

Preview Lab → · Contrast checker → · Palette generator →

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