#2A3887#2A3887

#2A3887 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.132 H 271.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2A3887
RGBrgb(42, 56, 135)
HSLhsl(231, 53%, 35%)
HSVhsv(231, 69%, 53%)
CMYKcmyk(68.9%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.93, 21.92, -46.02)
CIE-LCHlch(26.93, 50.97, 295.47°)
OKLaboklab(37.85% 0.0025 -0.1325)
OKLCHoklch(37.85% 0.132 271.1)
XYZxyz(6.7407, 5.0692, 23.5402)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3887 #87792A
analogous
#2A6687 #2A3887 #4B2A87
triadic
#2A3887 #872A38 #38872A
tetradic
#2A3887 #872A66 #87792A #2A874B
square
#2A3887 #872A66 #87792A #2A874B
split-complementary
#2A3887 #874B2A #66872A
monochromatic
#0D112A #1B2558 #2A3887 #394BB6 #5E6FCD

Accessibility & contrast

On white

10.43
#2A3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3887
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3887#FFFFFF#000000##FFFFFF
##2A38871.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3887;
/* rgb */ color: rgb(42, 56, 135);
/* oklch */ color: oklch(37.9% 0.132 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f6eab',
    500: '#2a3887',
    950: '#000000',
  },
}
SCSS
$custom: #2a3887;
$custom-light: #6f6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3887",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 230.968,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37855,
    "c": 0.13247,
    "h": 271.1
  },
  "luminance": 0.0507
}

Semantic roles & 50–950 ramp

primary
#2A3887
secondary
#B3A55A
accent
#C64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3887

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

Preview Lab → · Contrast checker → · Palette generator →

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