#2A2D76#2A2D76

#2A2D76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.123 H 276.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A2D76
RGBrgb(42, 45, 118)
HSLhsl(238, 48%, 31%)
HSVhsv(238, 64%, 46%)
CMYKcmyk(64.4%, 61.9%, 0%, 53.7%)
CIE-LABlab(22.57, 23.09, -42.39)
CIE-LCHlch(22.57, 48.27, 298.58°)
OKLaboklab(34.18% 0.0128 -0.1219)
OKLCHoklch(34.18% 0.123 276)
XYZxyz(5.1622, 3.6766, 17.5737)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D76 #76732A
analogous
#2A5376 #2A2D76 #4D2A76
triadic
#2A2D76 #762A2D #2D762A
tetradic
#2A2D76 #762A53 #76732A #2A764D
square
#2A2D76 #762A53 #76732A #2A764D
split-complementary
#2A2D76 #764D2A #53762A
monochromatic
#0A0B1C #1A1C49 #2A2D76 #3A3EA3 #575BC3

Accessibility & contrast

On white

12.10
#2A2D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D76
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D76#FFFFFF#000000##FFFFFF
##2A2D761.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2d76;
/* rgb */ color: rgb(42, 45, 118);
/* oklch */ color: oklch(34.2% 0.123 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d669e',
    500: '#2a2d76',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d76;
$custom-light: #6d669e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d76",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 237.632,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34179,
    "c": 0.12257,
    "h": 276
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#2A2D76
secondary
#A8A454
accent
#D251D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2A2D76

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

Preview Lab → · Contrast checker → · Palette generator →

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