#2A3481#2A3481

#2A3481 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.129 H 272.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2A3481
RGBrgb(42, 52, 129)
HSLhsl(233, 51%, 34%)
HSVhsv(233, 67%, 51%)
CMYKcmyk(67.4%, 59.7%, 0%, 49.4%)
CIE-LABlab(25.36, 22.39, -44.82)
CIE-LCHlch(25.36, 50.10, 296.55°)
OKLaboklab(36.53% 0.006 -0.129)
OKLCHoklch(36.53% 0.129 272.7)
XYZxyz(6.1440, 4.5327, 21.3157)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3481 #81772A
analogous
#2A5F81 #2A3481 #4B2A81
triadic
#2A3481 #812A34 #34812A
tetradic
#2A3481 #812A5F #81772A #2A814B
square
#2A3481 #812A5F #81772A #2A814B
split-complementary
#2A3481 #814B2A #5F812A
monochromatic
#0C0F25 #1B2153 #2A3481 #3947AF #5C68CA

Accessibility & contrast

On white

11.01
#2A3481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A3481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3481
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3481#FFFFFF#000000##FFFFFF
##2A34811.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3481;
/* rgb */ color: rgb(42, 52, 129);
/* oklch */ color: oklch(36.5% 0.129 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e6ba6',
    500: '#2a3481',
    950: '#000000',
  },
}
SCSS
$custom: #2a3481;
$custom-light: #6e6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3481",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 129
  },
  "hsl": {
    "h": 233.103,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36531,
    "c": 0.12912,
    "h": 272.7
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#2A3481
secondary
#AFA557
accent
#CA4DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3481

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

Preview Lab → · Contrast checker → · Palette generator →

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