#2D2A78#2D2A78

#2D2A78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.129 H 278.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2D2A78
RGBrgb(45, 42, 120)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 47%)
CMYKcmyk(62.5%, 65%, 0%, 52.9%)
CIE-LABlab(22.19, 26.38, -44.27)
CIE-LCHlch(22.19, 51.54, 300.79°)
OKLaboklab(34.01% 0.0196 -0.1274)
OKLCHoklch(34.01% 0.129 278.8)
XYZxyz(5.2992, 3.5695, 18.1754)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A78 #75782A
analogous
#2A4E78 #2D2A78 #542A78
triadic
#2D2A78 #782D2A #2A782D
tetradic
#2D2A78 #782A4E #75782A #2A7854
square
#2D2A78 #782A4E #75782A #2A7854
split-complementary
#2D2A78 #78542A #4E782A
monochromatic
#0B0A1D #1C1A4B #2D2A78 #3E3AA5 #5C58C5

Accessibility & contrast

On white

12.25
#2D2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A78
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A78#FFFFFF#000000##FFFFFF
##2D2A781.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2a78;
/* rgb */ color: rgb(45, 42, 120);
/* oklch */ color: oklch(34.0% 0.129 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2d2a78',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a78;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a78",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 242.308,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34013,
    "c": 0.12886,
    "h": 278.8
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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