#2D2A79#2D2A79

#2D2A79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.130 H 278.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2D2A79
RGBrgb(45, 42, 121)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 47%)
CMYKcmyk(62.8%, 65.3%, 0%, 52.5%)
CIE-LABlab(22.28, 26.74, -44.77)
CIE-LCHlch(22.28, 52.14, 300.85°)
OKLaboklab(34.1% 0.0195 -0.1288)
OKLCHoklch(34.1% 0.13 278.6)
XYZxyz(5.3602, 3.5939, 18.4967)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A79 #76792A
analogous
#2A4F79 #2D2A79 #542A79
triadic
#2D2A79 #792D2A #2A792D
tetradic
#2D2A79 #792A4F #76792A #2A7954
square
#2D2A79 #792A4F #76792A #2A7954
split-complementary
#2D2A79 #79542A #4F792A
monochromatic
#0B0A1E #1C1A4C #2D2A79 #3E3AA6 #5C58C5

Accessibility & contrast

On white

12.22
#2D2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A79
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A79#FFFFFF#000000##FFFFFF
##2D2A791.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2a79;
/* rgb */ color: rgb(45, 42, 121);
/* oklch */ color: oklch(34.1% 0.130 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2d2a79',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a79;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a79",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 242.278,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34104,
    "c": 0.13029,
    "h": 278.6
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#2D2A79
secondary
#A7AB54
accent
#D850D3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2D2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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