#2A3582#2A3582

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

Color values

HEX#2A3582
RGBrgb(42, 53, 130)
HSLhsl(233, 51%, 34%)
HSVhsv(233, 68%, 51%)
CMYKcmyk(67.7%, 59.2%, 0%, 49%)
CIE-LABlab(25.71, 22.08, -44.87)
CIE-LCHlch(25.71, 50.01, 296.20°)
OKLaboklab(36.82% 0.0051 -0.1291)
OKLCHoklch(36.82% 0.129 272.3)
XYZxyz(6.2559, 4.6496, 21.6825)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3582 #82772A
analogous
#2A6182 #2A3582 #4B2A82
triadic
#2A3582 #822A35 #35822A
tetradic
#2A3582 #822A61 #82772A #2A824B
square
#2A3582 #822A61 #82772A #2A824B
split-complementary
#2A3582 #824B2A #61822A
monochromatic
#0C0F25 #1B2254 #2A3582 #3948B0 #5C6ACA

Accessibility & contrast

On white

10.88
#2A3582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A3582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3582
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3582#FFFFFF#000000##FFFFFF
##2A35821.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3582;
/* rgb */ color: rgb(42, 53, 130);
/* oklch */ color: oklch(36.8% 0.129 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f6ca7',
    500: '#2a3582',
    950: '#000000',
  },
}
SCSS
$custom: #2a3582;
$custom-light: #6f6ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3582",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 130
  },
  "hsl": {
    "h": 232.5,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36819,
    "c": 0.12923,
    "h": 272.3
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#2A3582
secondary
#B0A558
accent
#C94DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3582

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

Preview Lab → · Contrast checker → · Palette generator →

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