#2D2A74#2D2A74

#2D2A74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.123 H 279.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2D2A74
RGBrgb(45, 42, 116)
HSLhsl(242, 47%, 31%)
HSVhsv(242, 64%, 45%)
CMYKcmyk(61.2%, 63.8%, 0%, 54.5%)
CIE-LABlab(21.85, 24.96, -42.27)
CIE-LCHlch(21.85, 49.09, 300.56°)
OKLaboklab(33.66% 0.0199 -0.1215)
OKLCHoklch(33.66% 0.123 279.3)
XYZxyz(5.0615, 3.4744, 16.9235)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A74 #71742A
analogous
#2A4C74 #2D2A74 #522A74
triadic
#2D2A74 #742D2A #2A742D
tetradic
#2D2A74 #742A4C #71742A #2A7452
square
#2D2A74 #742A4C #71742A #2A7452
split-complementary
#2D2A74 #74522A #4C742A
monochromatic
#0A091A #1C1A47 #2D2A74 #3E3AA1 #5B56C2

Accessibility & contrast

On white

12.39
#2D2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D2A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A74
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A74#FFFFFF#000000##FFFFFF
##2D2A741.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2a74;
/* rgb */ color: rgb(45, 42, 116);
/* oklch */ color: oklch(33.7% 0.123 279.3);
Tailwind
colors: {
  custom: {
    50: '#6e639d',
    500: '#2d2a74',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a74;
$custom-light: #6e639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a74",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 242.432,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33655,
    "c": 0.1231,
    "h": 279.3
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#2D2A74
secondary
#A3A654
accent
#D651D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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