#2D2B78#2D2B78

#2D2B78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.128 H 278.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2D2B78
RGBrgb(45, 43, 120)
HSLhsl(242, 47%, 32%)
HSVhsv(242, 64%, 47%)
CMYKcmyk(62.5%, 64.2%, 0%, 52.9%)
CIE-LABlab(22.45, 25.72, -43.86)
CIE-LCHlch(22.45, 50.84, 300.39°)
OKLaboklab(34.2% 0.0186 -0.1261)
OKLCHoklch(34.2% 0.128 278.4)
XYZxyz(5.3351, 3.6413, 18.1874)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2B78 #76782B
analogous
#2B5078 #2D2B78 #532B78
triadic
#2D2B78 #782D2B #2B782D
tetradic
#2D2B78 #782B50 #76782B #2B7853
square
#2D2B78 #782B50 #76782B #2B7853
split-complementary
#2D2B78 #78532B #50782B
monochromatic
#0B0B1E #1C1B4B #2D2B78 #3E3BA5 #5C5AC4

Accessibility & contrast

On white

12.15
#2D2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2B78
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2B78#FFFFFF#000000##FFFFFF
##2D2B781.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2b78;
/* rgb */ color: rgb(45, 43, 120);
/* oklch */ color: oklch(34.2% 0.128 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f64a0',
    500: '#2d2b78',
    950: '#000000',
  },
}
SCSS
$custom: #2d2b78;
$custom-light: #6f64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2b78",
  "rgb": {
    "r": 45,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 241.558,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.342,
    "c": 0.12751,
    "h": 278.4
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2D2B78
secondary
#A7AA55
accent
#D751D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2D2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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