#2A2987#2A2987

#2A2987 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.152 H 275.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2987
RGBrgb(42, 41, 135)
HSLhsl(241, 53%, 35%)
HSVhsv(241, 70%, 53%)
CMYKcmyk(68.9%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.09, 31.91, -52.29)
CIE-LCHlch(23.09, 61.25, 301.39°)
OKLaboklab(35.03% 0.015 -0.151)
OKLCHoklch(35.03% 0.152 275.7)
XYZxyz(6.1195, 3.8268, 23.3331)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2987 #868729
analogous
#295787 #2A2987 #592987
triadic
#2A2987 #872A29 #29872A
tetradic
#2A2987 #872957 #868729 #298759
square
#2A2987 #872957 #868729 #298759
split-complementary
#2A2987 #875929 #578729
monochromatic
#0D0C29 #1B1B58 #2A2987 #3937B6 #5E5DCE

Accessibility & contrast

On white

11.90
#2A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2987
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2987#FFFFFF#000000##FFFFFF
##2A29871.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2987;
/* rgb */ color: rgb(42, 41, 135);
/* oklch */ color: oklch(35.0% 0.152 275.7);
Tailwind
colors: {
  custom: {
    50: '#7163ab',
    500: '#2a2987',
    950: '#000000',
  },
}
SCSS
$custom: #2a2987;
$custom-light: #7163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2987",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 240.638,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.1517,
    "h": 275.7
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#2A2987
secondary
#B2B359
accent
#DD4BDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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