#2D2D82#2D2D82

#2D2D82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.139 H 276.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2D2D82
RGBrgb(45, 45, 130)
HSLhsl(240, 49%, 34%)
HSVhsv(240, 65%, 51%)
CMYKcmyk(65.4%, 65.4%, 0%, 49%)
CIE-LABlab(23.82, 27.97, -47.94)
CIE-LCHlch(23.82, 55.51, 300.26°)
OKLaboklab(35.48% 0.0161 -0.1381)
OKLCHoklch(35.48% 0.139 276.6)
XYZxyz(6.0485, 4.0459, 21.5770)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D82 #82822D
analogous
#2D5882 #2D2D82 #582D82
triadic
#2D2D82 #822D2D #2D822D
tetradic
#2D2D82 #822D58 #82822D #2D8258
square
#2D2D82 #822D58 #82822D #2D8258
split-complementary
#2D2D82 #82582D #58822D
monochromatic
#0E0E27 #1D1D55 #2D2D82 #3D3DAF #6161C8

Accessibility & contrast

On white

11.61
#2D2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D82
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D82#FFFFFF#000000##FFFFFF
##2D2D821.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2d82;
/* rgb */ color: rgb(45, 45, 130);
/* oklch */ color: oklch(35.5% 0.139 276.6);
Tailwind
colors: {
  custom: {
    50: '#7166a7',
    500: '#2d2d82',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d82;
$custom-light: #7166a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d82",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.13906,
    "h": 276.6
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#2D2D82
secondary
#AFAF5C
accent
#D850D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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