#2A2C87#2A2C87

#2A2C87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.148 H 274.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2C87
RGBrgb(42, 44, 135)
HSLhsl(239, 53%, 35%)
HSVhsv(239, 69%, 53%)
CMYKcmyk(68.9%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.81, 29.97, -51.11)
CIE-LCHlch(23.81, 59.25, 300.39°)
OKLaboklab(35.55% 0.0127 -0.1475)
OKLCHoklch(35.55% 0.148 274.9)
XYZxyz(6.2273, 4.0423, 23.3690)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C87 #87852A
analogous
#2A5A87 #2A2C87 #572A87
triadic
#2A2C87 #872A2C #2C872A
tetradic
#2A2C87 #872A5A #87852A #2A8757
square
#2A2C87 #872A5A #87852A #2A8757
split-complementary
#2A2C87 #87572A #5A872A
monochromatic
#0D0E2A #1B1D58 #2A2C87 #393BB6 #5E61CD

Accessibility & contrast

On white

11.61
#2A2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C87
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C87#FFFFFF#000000##FFFFFF
##2A2C871.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2c87;
/* rgb */ color: rgb(42, 44, 135);
/* oklch */ color: oklch(35.6% 0.148 274.9);
Tailwind
colors: {
  custom: {
    50: '#7065ab',
    500: '#2a2c87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c87;
$custom-light: #7065ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c87",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 238.71,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35552,
    "c": 0.14804,
    "h": 274.9
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#2A2C87
secondary
#B3B15A
accent
#D94CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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