#2A3487#2A3487

#2A3487 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.138 H 272.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2A3487
RGBrgb(42, 52, 135)
HSLhsl(234, 53%, 35%)
HSVhsv(234, 69%, 53%)
CMYKcmyk(68.9%, 61.5%, 0%, 47.1%)
CIE-LABlab(25.85, 24.64, -47.77)
CIE-LCHlch(25.85, 53.75, 297.28°)
OKLaboklab(37.05% 0.006 -0.1376)
OKLCHoklch(37.05% 0.138 272.5)
XYZxyz(6.5545, 4.6969, 23.4781)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3487 #877D2A
analogous
#2A6387 #2A3487 #4E2A87
triadic
#2A3487 #872A34 #34872A
tetradic
#2A3487 #872A63 #877D2A #2A874E
square
#2A3487 #872A63 #877D2A #2A874E
split-complementary
#2A3487 #874E2A #63872A
monochromatic
#0D102A #1B2258 #2A3487 #3946B6 #5E6ACD

Accessibility & contrast

On white

10.83
#2A3487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A3487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3487
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3487#FFFFFF#000000##FFFFFF
##2A34871.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3487;
/* rgb */ color: rgb(42, 52, 135);
/* oklch */ color: oklch(37.1% 0.138 272.5);
Tailwind
colors: {
  custom: {
    50: '#706bab',
    500: '#2a3487',
    950: '#000000',
  },
}
SCSS
$custom: #2a3487;
$custom-light: #706bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3487",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 135
  },
  "hsl": {
    "h": 233.548,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37052,
    "c": 0.13778,
    "h": 272.5
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#2A3487
secondary
#B3A95A
accent
#CC4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3487

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

Preview Lab → · Contrast checker → · Palette generator →

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