#2D2A8A#2D2A8A

#2D2A8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.154 H 276.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2D2A8A
RGBrgb(45, 42, 138)
HSLhsl(242, 53%, 35%)
HSVhsv(242, 70%, 54%)
CMYKcmyk(67.4%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.83, 32.75, -52.94)
CIE-LCHlch(23.83, 62.25, 301.74°)
OKLaboklab(35.71% 0.0177 -0.1528)
OKLCHoklch(35.71% 0.154 276.6)
XYZxyz(6.4961, 4.0482, 24.4789)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A8A #878A2A
analogous
#2A578A #2D2A8A #5D2A8A
triadic
#2D2A8A #8A2D2A #2A8A2D
tetradic
#2D2A8A #8A2A57 #878A2A #2A8A5D
square
#2D2A8A #8A2A57 #878A2A #2A8A5D
split-complementary
#2D2A8A #8A5D2A #578A2A
monochromatic
#0E0D2C #1E1C5B #2D2A8A #3C38B9 #6360CF

Accessibility & contrast

On white

11.60
#2D2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A8A
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A8A#FFFFFF#000000##FFFFFF
##2D2A8A1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2a8a;
/* rgb */ color: rgb(45, 42, 138);
/* oklch */ color: oklch(35.7% 0.154 276.6);
Tailwind
colors: {
  custom: {
    50: '#7364ad',
    500: '#2d2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a8a;
$custom-light: #7364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a8a",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 241.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.15381,
    "h": 276.6
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#2D2A8A
secondary
#B2B45B
accent
#DD4BD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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