#2D2D79#2D2D79

#2D2D79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.126 H 277.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2D2D79
RGBrgb(45, 45, 121)
HSLhsl(240, 46%, 33%)
HSVhsv(240, 63%, 47%)
CMYKcmyk(62.8%, 62.8%, 0%, 52.5%)
CIE-LABlab(23.05, 24.74, -43.51)
CIE-LCHlch(23.05, 50.05, 299.62°)
OKLaboklab(34.67% 0.0166 -0.1251)
OKLCHoklch(34.67% 0.126 277.6)
XYZxyz(5.4707, 3.8147, 18.5335)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D79 #79792D
analogous
#2D5379 #2D2D79 #532D79
triadic
#2D2D79 #792D2D #2D792D
tetradic
#2D2D79 #792D53 #79792D #2D7953
square
#2D2D79 #792D53 #79792D #2D7953
split-complementary
#2D2D79 #79532D #53792D
monochromatic
#0C0C20 #1C1C4C #2D2D79 #3E3EA6 #5D5DC3

Accessibility & contrast

On white

11.91
#2D2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D79
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D79#FFFFFF#000000##FFFFFF
##2D2D791.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2d79;
/* rgb */ color: rgb(45, 45, 121);
/* oklch */ color: oklch(34.7% 0.126 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f66a0',
    500: '#2d2d79',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d79;
$custom-light: #6f66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d79",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34668,
    "c": 0.12622,
    "h": 277.6
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#2D2D79
secondary
#A9A958
accent
#D552D5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2D2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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