#2A3987#2A3987

#2A3987 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.131 H 270.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2A3987
RGBrgb(42, 57, 135)
HSLhsl(230, 53%, 35%)
HSVhsv(230, 69%, 53%)
CMYKcmyk(68.9%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.21, 21.23, -45.57)
CIE-LCHlch(27.21, 50.28, 294.98°)
OKLaboklab(38.06% 0.0015 -0.1311)
OKLCHoklch(38.06% 0.131 270.7)
XYZxyz(6.7897, 5.1671, 23.5565)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3987 #87782A
analogous
#2A6787 #2A3987 #4A2A87
triadic
#2A3987 #872A39 #39872A
tetradic
#2A3987 #872A67 #87782A #2A874A
square
#2A3987 #872A67 #87782A #2A874A
split-complementary
#2A3987 #874A2A #67872A
monochromatic
#0D122A #1B2558 #2A3987 #394DB6 #5E70CD

Accessibility & contrast

On white

10.33
#2A3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3987
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3987#FFFFFF#000000##FFFFFF
##2A39871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3987;
/* rgb */ color: rgb(42, 57, 135);
/* oklch */ color: oklch(38.1% 0.131 270.7);
Tailwind
colors: {
  custom: {
    50: '#6f6fab',
    500: '#2a3987',
    950: '#000000',
  },
}
SCSS
$custom: #2a3987;
$custom-light: #6f6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3987",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 230.323,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3806,
    "c": 0.13114,
    "h": 270.7
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#2A3987
secondary
#B3A45A
accent
#C54CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3987

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

Preview Lab → · Contrast checker → · Palette generator →

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