#2A3E87#2A3E87

#2A3E87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.124 H 268.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2A3E87
RGBrgb(42, 62, 135)
HSLhsl(227, 53%, 35%)
HSVhsv(227, 69%, 53%)
CMYKcmyk(68.9%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.61, 17.80, -43.30)
CIE-LCHlch(28.61, 46.82, 292.35°)
OKLaboklab(39.11% -0.0032 -0.1244)
OKLCHoklch(39.11% 0.124 268.5)
XYZxyz(7.0491, 5.6861, 23.6430)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E87 #87732A
analogous
#2A6C87 #2A3E87 #452A87
triadic
#2A3E87 #872A3E #3E872A
tetradic
#2A3E87 #872A6C #87732A #2A8745
square
#2A3E87 #872A6C #87732A #2A8745
split-complementary
#2A3E87 #87452A #6C872A
monochromatic
#0D132A #1B2958 #2A3E87 #3953B6 #5E76CD

Accessibility & contrast

On white

9.83
#2A3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E87
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E87#FFFFFF#000000##FFFFFF
##2A3E871.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3e87;
/* rgb */ color: rgb(42, 62, 135);
/* oklch */ color: oklch(39.1% 0.124 268.5);
Tailwind
colors: {
  custom: {
    50: '#6f72aa',
    500: '#2a3e87',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e87;
$custom-light: #6f72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e87",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 227.097,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39113,
    "c": 0.12442,
    "h": 268.5
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#2A3E87
secondary
#B3A05A
accent
#BD4CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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