#2A3C87#2A3C87

#2A3C87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.127 H 269.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2A3C87
RGBrgb(42, 60, 135)
HSLhsl(228, 53%, 35%)
HSVhsv(228, 69%, 53%)
CMYKcmyk(68.9%, 55.6%, 0%, 47.1%)
CIE-LABlab(28.04, 19.18, -44.22)
CIE-LCHlch(28.04, 48.20, 293.44°)
OKLaboklab(38.69% -0.0013 -0.1271)
OKLCHoklch(38.69% 0.127 269.4)
XYZxyz(6.9424, 5.4726, 23.6074)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C87 #87752A
analogous
#2A6B87 #2A3C87 #472A87
triadic
#2A3C87 #872A3C #3C872A
tetradic
#2A3C87 #872A6B #87752A #2A8747
square
#2A3C87 #872A6B #87752A #2A8747
split-complementary
#2A3C87 #87472A #6B872A
monochromatic
#0D132A #1B2758 #2A3C87 #3951B6 #5E74CD

Accessibility & contrast

On white

10.03
#2A3C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C87
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C87#FFFFFF#000000##FFFFFF
##2A3C871.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3c87;
/* rgb */ color: rgb(42, 60, 135);
/* oklch */ color: oklch(38.7% 0.127 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f71ab',
    500: '#2a3c87',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c87;
$custom-light: #6f71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c87",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 228.387,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.12711,
    "h": 269.4
  },
  "luminance": 0.05473
}

Semantic roles & 50–950 ramp

primary
#2A3C87
secondary
#B3A25A
accent
#C04CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3C87

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

Preview Lab → · Contrast checker → · Palette generator →

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