#2D2B79#2D2B79

#2D2B79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.129 H 278.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2D2B79
RGBrgb(45, 43, 121)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 64%, 47%)
CMYKcmyk(62.8%, 64.5%, 0%, 52.5%)
CIE-LABlab(22.53, 26.08, -44.35)
CIE-LCHlch(22.53, 51.45, 300.45°)
OKLaboklab(34.29% 0.0186 -0.1276)
OKLCHoklch(34.29% 0.129 278.3)
XYZxyz(5.3962, 3.6657, 18.5086)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B79 #77792B
analogous
#2B5079 #2D2B79 #542B79
triadic
#2D2B79 #792D2B #2B792D
tetradic
#2D2B79 #792B50 #77792B #2B7954
square
#2D2B79 #792B50 #77792B #2B7954
split-complementary
#2D2B79 #79542B #50792B
monochromatic
#0B0B1F #1C1B4C #2D2B79 #3E3BA6 #5D5AC4

Accessibility & contrast

On white

12.12
#2D2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2B79
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B79#FFFFFF#000000##FFFFFF
##2D2B791.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2b79;
/* rgb */ color: rgb(45, 43, 121);
/* oklch */ color: oklch(34.3% 0.129 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2d2b79',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b79;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b79",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 241.538,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.12894,
    "h": 278.3
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#2D2B79
secondary
#A8AA56
accent
#D751D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2D2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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