#2A2887#2A2887

#2A2887 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.153 H 275.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2887
RGBrgb(42, 40, 135)
HSLhsl(241, 54%, 34%)
HSVhsv(241, 70%, 53%)
CMYKcmyk(68.9%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.86, 32.54, -52.67)
CIE-LCHlch(22.86, 61.91, 301.71°)
OKLaboklab(34.86% 0.0157 -0.1521)
OKLCHoklch(34.86% 0.153 275.9)
XYZxyz(6.0854, 3.7586, 23.3218)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2887 #858728
analogous
#285687 #2A2887 #5A2887
triadic
#2A2887 #872A28 #28872A
tetradic
#2A2887 #872856 #858728 #28875A
square
#2A2887 #872856 #858728 #28875A
split-complementary
#2A2887 #875A28 #568728
monochromatic
#0D0C29 #1B1A58 #2A2887 #3936B6 #5D5BCE

Accessibility & contrast

On white

11.99
#2A2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2887
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2887#FFFFFF#000000##FFFFFF
##2A28871.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2887;
/* rgb */ color: rgb(42, 40, 135);
/* oklch */ color: oklch(34.9% 0.153 275.9);
Tailwind
colors: {
  custom: {
    50: '#7163ab',
    500: '#2a2887',
    950: '#000000',
  },
}
SCSS
$custom: #2a2887;
$custom-light: #7163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2887",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 241.263,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34861,
    "c": 0.1529,
    "h": 275.9
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#2A2887
secondary
#B2B457
accent
#DE4ADB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2887

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

Preview Lab → · Contrast checker → · Palette generator →

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