#2A2A87#2A2A87

#2A2A87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.150 H 275.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A2A87
RGBrgb(42, 42, 135)
HSLhsl(240, 53%, 35%)
HSVhsv(240, 69%, 53%)
CMYKcmyk(68.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.33, 31.26, -51.90)
CIE-LCHlch(23.33, 60.59, 301.07°)
OKLaboklab(35.2% 0.0142 -0.1498)
OKLCHoklch(35.2% 0.15 275.4)
XYZxyz(6.1545, 3.8969, 23.3448)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A87 #87872A
analogous
#2A5987 #2A2A87 #592A87
triadic
#2A2A87 #872A2A #2A872A
tetradic
#2A2A87 #872A59 #87872A #2A8759
square
#2A2A87 #872A59 #87872A #2A8759
split-complementary
#2A2A87 #87592A #59872A
monochromatic
#0D0D2A #1B1B58 #2A2A87 #3939B6 #5E5ECD

Accessibility & contrast

On white

11.80
#2A2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A87
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A87#FFFFFF#000000##FFFFFF
##2A2A871.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2a87;
/* rgb */ color: rgb(42, 42, 135);
/* oklch */ color: oklch(35.2% 0.150 275.4);
Tailwind
colors: {
  custom: {
    50: '#7164ab',
    500: '#2a2a87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a87;
$custom-light: #7164ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a87",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35201,
    "c": 0.15049,
    "h": 275.4
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#2A2A87
secondary
#B3B35A
accent
#DC4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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