#2A2E87#2A2E87

#2A2E87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.146 H 274.4°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2A2E87
RGBrgb(42, 46, 135)
HSLhsl(237, 53%, 35%)
HSVhsv(237, 69%, 53%)
CMYKcmyk(68.9%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.31, 28.66, -50.30)
CIE-LCHlch(24.31, 57.89, 299.67°)
OKLaboklab(35.91% 0.0111 -0.1451)
OKLCHoklch(35.91% 0.146 274.4)
XYZxyz(6.3036, 4.1949, 23.3945)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E87 #87832A
analogous
#2A5D87 #2A2E87 #542A87
triadic
#2A2E87 #872A2E #2E872A
tetradic
#2A2E87 #872A5D #87832A #2A8754
square
#2A2E87 #872A5D #87832A #2A8754
split-complementary
#2A2E87 #87542A #5D872A
monochromatic
#0D0E2A #1B1E58 #2A2E87 #393EB6 #5E63CD

Accessibility & contrast

On white

11.42
#2A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E87
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E87#FFFFFF#000000##FFFFFF
##2A2E871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2e87;
/* rgb */ color: rgb(42, 46, 135);
/* oklch */ color: oklch(35.9% 0.146 274.4);
Tailwind
colors: {
  custom: {
    50: '#7067ab',
    500: '#2a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e87;
$custom-light: #7067ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e87",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 237.419,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35913,
    "c": 0.14553,
    "h": 274.4
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#2A2E87
secondary
#B3AF5A
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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