#2A2087#2A2087

#2A2087 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 277.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2087
RGBrgb(42, 32, 135)
HSLhsl(246, 62%, 33%)
HSVhsv(246, 76%, 53%)
CMYKcmyk(68.9%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.11, 37.38, -55.54)
CIE-LCHlch(21.11, 66.95, 303.94°)
OKLaboklab(33.61% 0.0211 -0.1604)
OKLCHoklch(33.61% 0.162 277.5)
XYZxyz(5.8431, 3.2740, 23.2410)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2087 #7D8720
analogous
#204A87 #2A2087 #5D2087
triadic
#2A2087 #872A20 #20872A
tetradic
#2A2087 #87204A #7D8720 #20875D
square
#2A2087 #87204A #7D8720 #20875D
split-complementary
#2A2087 #875D20 #4A8720
monochromatic
#0B0924 #1B1456 #2A2087 #392CB8 #5A4DD5

Accessibility & contrast

On white

12.69
#2A2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2087
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2087#FFFFFF#000000##FFFFFF
##2A20871.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2087;
/* rgb */ color: rgb(42, 32, 135);
/* oklch */ color: oklch(33.6% 0.162 277.5);
Tailwind
colors: {
  custom: {
    50: '#725dab',
    500: '#2a2087',
    950: '#000000',
  },
}
SCSS
$custom: #2a2087;
$custom-light: #725dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2087",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 245.825,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33613,
    "c": 0.16184,
    "h": 277.5
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#2A2087
secondary
#ADB84B
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2087

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

Preview Lab → · Contrast checker → · Palette generator →

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