#2A2D81#2A2D81

#2A2D81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.138 H 275.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2D81
RGBrgb(42, 45, 129)
HSLhsl(238, 51%, 34%)
HSVhsv(238, 67%, 51%)
CMYKcmyk(67.4%, 65.1%, 0%, 49.4%)
CIE-LABlab(23.52, 27.13, -47.82)
CIE-LCHlch(23.52, 54.98, 299.57°)
OKLaboklab(35.17% 0.0123 -0.1379)
OKLCHoklch(35.17% 0.138 275.1)
XYZxyz(5.8544, 3.9535, 21.2192)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D81 #817E2A
analogous
#2A5881 #2A2D81 #522A81
triadic
#2A2D81 #812A2D #2D812A
tetradic
#2A2D81 #812A58 #817E2A #2A8152
square
#2A2D81 #812A58 #817E2A #2A8152
split-complementary
#2A2D81 #81522A #58812A
monochromatic
#0C0D25 #1B1D53 #2A2D81 #393DAF #5C5FCA

Accessibility & contrast

On white

11.73
#2A2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D81
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D81#FFFFFF#000000##FFFFFF
##2A2D811.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2d81;
/* rgb */ color: rgb(42, 45, 129);
/* oklch */ color: oklch(35.2% 0.138 275.1);
Tailwind
colors: {
  custom: {
    50: '#6f66a6',
    500: '#2a2d81',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d81;
$custom-light: #6f66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d81",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 237.931,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3517,
    "c": 0.13841,
    "h": 275.1
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#2A2D81
secondary
#AFAC57
accent
#D64DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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