#2A2D87#2A2D87

#2A2D87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.147 H 274.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2A2D87
RGBrgb(42, 45, 135)
HSLhsl(238, 53%, 35%)
HSVhsv(238, 69%, 53%)
CMYKcmyk(68.9%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.06, 29.32, -50.70)
CIE-LCHlch(24.06, 58.57, 300.04°)
OKLaboklab(35.73% 0.0119 -0.1463)
OKLCHoklch(35.73% 0.147 274.6)
XYZxyz(6.2650, 4.1177, 23.3816)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D87 #87842A
analogous
#2A5B87 #2A2D87 #562A87
triadic
#2A2D87 #872A2D #2D872A
tetradic
#2A2D87 #872A5B #87842A #2A8756
square
#2A2D87 #872A5B #87842A #2A8756
split-complementary
#2A2D87 #87562A #5B872A
monochromatic
#0D0E2A #1B1D58 #2A2D87 #393DB6 #5E62CD

Accessibility & contrast

On white

11.52
#2A2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D87
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D87#FFFFFF#000000##FFFFFF
##2A2D871.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2d87;
/* rgb */ color: rgb(42, 45, 135);
/* oklch */ color: oklch(35.7% 0.147 274.6);
Tailwind
colors: {
  custom: {
    50: '#7066ab',
    500: '#2a2d87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d87;
$custom-light: #7066ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d87",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 238.065,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35731,
    "c": 0.14679,
    "h": 274.6
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#2A2D87
secondary
#B3B05A
accent
#D74CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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