#2D2A96#2D2A96

#2D2A96 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.170 H 275.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2D2A96
RGBrgb(45, 42, 150)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 59%)
CMYKcmyk(70%, 72%, 0%, 41.2%)
CIE-LABlab(25.00, 36.91, -58.45)
CIE-LCHlch(25.00, 69.13, 302.27°)
OKLaboklab(36.91% 0.0159 -0.1689)
OKLCHoklch(36.91% 0.17 275.4)
XYZxyz(7.4134, 4.4151, 29.3098)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A96 #93962A
analogous
#2A5D96 #2D2A96 #632A96
triadic
#2D2A96 #962D2A #2A962D
tetradic
#2D2A96 #962A5D #93962A #2A9663
square
#2D2A96 #962A5D #93962A #2A9663
split-complementary
#2D2A96 #96632A #5D962A
monochromatic
#100F36 #1F1D66 #2D2A96 #3B37C6 #6966D4

Accessibility & contrast

On white

11.15
#2D2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A96
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A96#FFFFFF#000000##FFFFFF
##2D2A961.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2a96;
/* rgb */ color: rgb(45, 42, 150);
/* oklch */ color: oklch(36.9% 0.170 275.4);
Tailwind
colors: {
  custom: {
    50: '#7565b6',
    500: '#2d2a96',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a96;
$custom-light: #7565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a96",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 241.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36905,
    "c": 0.16965,
    "h": 275.4
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#2D2A96
secondary
#B8BA61
accent
#E048DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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