#2A3D86#2A3D86

#2A3D86 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.124 H 268.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A3D86
RGBrgb(42, 61, 134)
HSLhsl(228, 52%, 35%)
HSVhsv(228, 69%, 53%)
CMYKcmyk(68.7%, 54.5%, 0%, 47.5%)
CIE-LABlab(28.25, 18.11, -43.26)
CIE-LCHlch(28.25, 46.90, 292.71°)
OKLaboklab(38.82% -0.0023 -0.1243)
OKLCHoklch(38.82% 0.124 268.9)
XYZxyz(6.9252, 5.5503, 23.2560)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D86 #86732A
analogous
#2A6B86 #2A3D86 #452A86
triadic
#2A3D86 #862A3D #3D862A
tetradic
#2A3D86 #862A6B #86732A #2A8645
square
#2A3D86 #862A6B #86732A #2A8645
split-complementary
#2A3D86 #86452A #6B862A
monochromatic
#0D1329 #1B2857 #2A3D86 #3952B5 #5E75CD

Accessibility & contrast

On white

9.95
#2A3D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A3D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D86
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D86#FFFFFF#000000##FFFFFF
##2A3D861.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4789
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3d86;
/* rgb */ color: rgb(42, 61, 134);
/* oklch */ color: oklch(38.8% 0.124 268.9);
Tailwind
colors: {
  custom: {
    50: '#6f72aa',
    500: '#2a3d86',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d86;
$custom-light: #6f72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d86",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 134
  },
  "hsl": {
    "h": 227.609,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38819,
    "c": 0.12429,
    "h": 268.9
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#2A3D86
secondary
#B2A05A
accent
#BE4CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3D86

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

Preview Lab → · Contrast checker → · Palette generator →

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