#2A189D#2A189D

#2A189D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.196 H 275.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2A189D
RGBrgb(42, 24, 157)
HSLhsl(248, 73%, 35%)
HSVhsv(248, 85%, 62%)
CMYKcmyk(73.2%, 84.7%, 0%, 38.4%)
CIE-LABlab(22.23, 48.39, -67.33)
CIE-LCHlch(22.23, 82.92, 305.71°)
OKLaboklab(35.13% 0.0189 -0.1946)
OKLCHoklch(35.13% 0.196 275.5)
XYZxyz(7.3653, 3.5791, 32.1944)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A189D #8B9D18
analogous
#18499D #2A189D #6C189D
triadic
#2A189D #9D2A18 #189D2A
tetradic
#2A189D #9D1849 #8B9D18 #189D6C
square
#2A189D #9D1849 #8B9D18 #189D6C
split-complementary
#2A189D #9D6C18 #499D18
monochromatic
#0E0833 #1C1068 #2A189D #3820D2 #604CE4

Accessibility & contrast

On white

12.24
#2A189D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A189D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A189D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A189D#FFFFFF#000000##FFFFFF
##2A189D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#002F9B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a189d;
/* rgb */ color: rgb(42, 24, 157);
/* oklch */ color: oklch(35.1% 0.196 275.5);
Tailwind
colors: {
  custom: {
    50: '#775abb',
    500: '#2a189d',
    950: '#000000',
  },
}
SCSS
$custom: #2a189d;
$custom-light: #775abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a189d",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 157
  },
  "hsl": {
    "h": 248.12,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3513,
    "c": 0.19552,
    "h": 275.5
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#2A189D
secondary
#B5C54B
accent
#F038D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A189D

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

Preview Lab → · Contrast checker → · Palette generator →

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