#2D2A8D#2D2A8D

#2D2A8D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.158 H 276.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2D2A8D
RGBrgb(45, 42, 141)
HSLhsl(242, 54%, 36%)
HSVhsv(242, 70%, 55%)
CMYKcmyk(68.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.12, 33.79, -54.33)
CIE-LCHlch(24.12, 63.99, 301.88°)
OKLaboklab(36% 0.0173 -0.1569)
OKLCHoklch(36% 0.158 276.3)
XYZxyz(6.7163, 4.1363, 25.6386)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A8D #8A8D2A
analogous
#2A588D #2D2A8D #5E2A8D
triadic
#2D2A8D #8D2D2A #2A8D2D
tetradic
#2D2A8D #8D2A58 #8A8D2A #2A8D5E
square
#2D2A8D #8D2A58 #8A8D2A #2A8D5E
split-complementary
#2D2A8D #8D5E2A #588D2A
monochromatic
#0F0E2F #1E1C5E #2D2A8D #3C38BC #6561D0

Accessibility & contrast

On white

11.49
#2D2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A8D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A8D#FFFFFF#000000##FFFFFF
##2D2A8D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2a8d;
/* rgb */ color: rgb(45, 42, 141);
/* oklch */ color: oklch(36.0% 0.158 276.3);
Tailwind
colors: {
  custom: {
    50: '#7364af',
    500: '#2d2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a8d;
$custom-light: #7364af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a8d",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 241.818,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.15782,
    "h": 276.3
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#2D2A8D
secondary
#B3B65D
accent
#DD4AD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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