#2A3A87#2A3A87

#2A3A87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.130 H 270.3°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2A3A87
RGBrgb(42, 58, 135)
HSLhsl(230, 53%, 35%)
HSVhsv(230, 69%, 53%)
CMYKcmyk(68.9%, 57%, 0%, 47.1%)
CIE-LABlab(27.48, 20.55, -45.12)
CIE-LCHlch(27.48, 49.58, 294.48°)
OKLaboklab(38.27% 0.0006 -0.1298)
OKLCHoklch(38.27% 0.13 270.3)
XYZxyz(6.8396, 5.2670, 23.5732)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A87 #87772A
analogous
#2A6987 #2A3A87 #482A87
triadic
#2A3A87 #872A3A #3A872A
tetradic
#2A3A87 #872A69 #87772A #2A8748
square
#2A3A87 #872A69 #87772A #2A8748
split-complementary
#2A3A87 #87482A #69872A
monochromatic
#0D122A #1B2658 #2A3A87 #394EB6 #5E71CD

Accessibility & contrast

On white

10.23
#2A3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A87
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A87#FFFFFF#000000##FFFFFF
##2A3A871.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3a87;
/* rgb */ color: rgb(42, 58, 135);
/* oklch */ color: oklch(38.3% 0.130 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f6fab',
    500: '#2a3a87',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a87;
$custom-light: #6f6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a87",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 229.677,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.12979,
    "h": 270.3
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#2A3A87
secondary
#B3A35A
accent
#C34CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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