#2A3387#2A3387

#2A3387 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.139 H 272.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2A3387
RGBrgb(42, 51, 135)
HSLhsl(234, 53%, 35%)
HSVhsv(234, 69%, 53%)
CMYKcmyk(68.9%, 62.2%, 0%, 47.1%)
CIE-LABlab(25.59, 25.31, -48.20)
CIE-LCHlch(25.59, 54.44, 297.71°)
OKLaboklab(36.86% 0.0069 -0.1389)
OKLCHoklch(36.86% 0.139 272.8)
XYZxyz(6.5104, 4.6086, 23.4634)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3387 #877E2A
analogous
#2A6187 #2A3387 #502A87
triadic
#2A3387 #872A33 #33872A
tetradic
#2A3387 #872A61 #877E2A #2A8750
square
#2A3387 #872A61 #877E2A #2A8750
split-complementary
#2A3387 #87502A #61872A
monochromatic
#0D102A #1B2158 #2A3387 #3945B6 #5E69CD

Accessibility & contrast

On white

10.93
#2A3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3387
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3387#FFFFFF#000000##FFFFFF
##2A33871.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3387;
/* rgb */ color: rgb(42, 51, 135);
/* oklch */ color: oklch(36.9% 0.139 272.8);
Tailwind
colors: {
  custom: {
    50: '#706aab',
    500: '#2a3387',
    950: '#000000',
  },
}
SCSS
$custom: #2a3387;
$custom-light: #706aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3387",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 234.194,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36857,
    "c": 0.13909,
    "h": 272.8
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#2A3387
secondary
#B3AA5A
accent
#CE4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3387

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

Preview Lab → · Contrast checker → · Palette generator →

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