#2D2976#2D2976

#2D2976 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.127 H 279.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2D2976
RGBrgb(45, 41, 118)
HSLhsl(243, 48%, 31%)
HSVhsv(243, 65%, 46%)
CMYKcmyk(61.9%, 65.3%, 0%, 53.7%)
CIE-LABlab(21.77, 26.34, -43.69)
CIE-LCHlch(21.77, 51.01, 301.08°)
OKLaboklab(33.65% 0.0207 -0.1257)
OKLCHoklch(33.65% 0.127 279.4)
XYZxyz(5.1441, 3.4514, 17.5311)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2976 #727629
analogous
#294B76 #2D2976 #532976
triadic
#2D2976 #762D29 #29762D
tetradic
#2D2976 #76294B #727629 #297653
square
#2D2976 #76294B #727629 #297653
split-complementary
#2D2976 #765329 #4B7629
monochromatic
#0A091B #1C1949 #2D2976 #3E39A3 #5B55C4

Accessibility & contrast

On white

12.42
#2D2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2976
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2976#FFFFFF#000000##FFFFFF
##2D29761.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2976;
/* rgb */ color: rgb(45, 41, 118);
/* oklch */ color: oklch(33.6% 0.127 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e639e',
    500: '#2d2976',
    950: '#000000',
  },
}
SCSS
$custom: #2d2976;
$custom-light: #6e639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2976",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 243.117,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33648,
    "c": 0.12736,
    "h": 279.4
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#2D2976
secondary
#A3A853
accent
#D850D1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2976

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

Preview Lab → · Contrast checker → · Palette generator →

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