#2A3581#2A3581

#2A3581 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.128 H 272.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2A3581
RGBrgb(42, 53, 129)
HSLhsl(232, 51%, 34%)
HSVhsv(232, 67%, 51%)
CMYKcmyk(67.4%, 58.9%, 0%, 49.4%)
CIE-LABlab(25.63, 21.71, -44.38)
CIE-LCHlch(25.63, 49.40, 296.07°)
OKLaboklab(36.73% 0.0051 -0.1277)
OKLCHoklch(36.73% 0.128 272.3)
XYZxyz(6.1891, 4.6229, 21.3308)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3581 #81762A
analogous
#2A6081 #2A3581 #4A2A81
triadic
#2A3581 #812A35 #35812A
tetradic
#2A3581 #812A60 #81762A #2A814A
square
#2A3581 #812A60 #81762A #2A814A
split-complementary
#2A3581 #814A2A #60812A
monochromatic
#0C0F25 #1B2253 #2A3581 #3948AF #5C6ACA

Accessibility & contrast

On white

10.91
#2A3581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3581
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3581#FFFFFF#000000##FFFFFF
##2A35811.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3581;
/* rgb */ color: rgb(42, 53, 129);
/* oklch */ color: oklch(36.7% 0.128 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e6ca6',
    500: '#2a3581',
    950: '#000000',
  },
}
SCSS
$custom: #2a3581;
$custom-light: #6e6ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3581",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 232.414,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.12777,
    "h": 272.3
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#2A3581
secondary
#AFA457
accent
#C94DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3581

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

Preview Lab → · Contrast checker → · Palette generator →

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