#2D2D78#2D2D78

#2D2D78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.125 H 277.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2D2D78
RGBrgb(45, 45, 120)
HSLhsl(240, 45%, 32%)
HSVhsv(240, 63%, 47%)
CMYKcmyk(62.5%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.97, 24.37, -43.01)
CIE-LCHlch(22.97, 49.44, 299.54°)
OKLaboklab(34.58% 0.0166 -0.1236)
OKLCHoklch(34.58% 0.125 277.7)
XYZxyz(5.4097, 3.7903, 18.2122)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D78 #78782D
analogous
#2D5378 #2D2D78 #532D78
triadic
#2D2D78 #782D2D #2D782D
tetradic
#2D2D78 #782D53 #78782D #2D7853
square
#2D2D78 #782D53 #78782D #2D7853
split-complementary
#2D2D78 #78532D #53782D
monochromatic
#0C0C1F #1C1C4B #2D2D78 #3E3EA5 #5D5DC2

Accessibility & contrast

On white

11.94
#2D2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2D78
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D78#FFFFFF#000000##FFFFFF
##2D2D781.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2d78;
/* rgb */ color: rgb(45, 45, 120);
/* oklch */ color: oklch(34.6% 0.125 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f66a0',
    500: '#2d2d78',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d78;
$custom-light: #6f66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d78",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34581,
    "c": 0.12476,
    "h": 277.7
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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