#2A188A#2A188A

#2A188A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.173 H 278.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2A188A
RGBrgb(42, 24, 138)
HSLhsl(249, 70%, 32%)
HSVhsv(249, 83%, 54%)
CMYKcmyk(69.6%, 82.6%, 0%, 45.9%)
CIE-LABlab(19.96, 42.59, -59.32)
CIE-LCHlch(19.96, 73.03, 305.68°)
OKLaboklab(32.91% 0.0247 -0.1713)
OKLCHoklch(32.91% 0.173 278.2)
XYZxyz(5.8674, 2.9800, 24.3058)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188A #788A18
analogous
#183F8A #2A188A #63188A
triadic
#2A188A #8A2A18 #188A2A
tetradic
#2A188A #8A183F #788A18 #188A63
square
#2A188A #8A183F #788A18 #188A63
split-complementary
#2A188A #8A6318 #3F8A18
monochromatic
#0A0622 #1A0F56 #2A188A #3A21BE #583FDE

Accessibility & contrast

On white

13.16
#2A188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A188A
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188A#FFFFFF#000000##FFFFFF
##2A188A1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a188a;
/* rgb */ color: rgb(42, 24, 138);
/* oklch */ color: oklch(32.9% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#7359ad',
    500: '#2a188a',
    950: '#000000',
  },
}
SCSS
$custom: #2a188a;
$custom-light: #7359ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188a",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 249.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.17312,
    "h": 278.2
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#2A188A
secondary
#AABD40
accent
#ED3BD1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A188A

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

Preview Lab → · Contrast checker → · Palette generator →

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