#2D2282#2D2282

#2D2282 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.153 H 279.5°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2D2282
RGBrgb(45, 34, 130)
HSLhsl(247, 59%, 32%)
HSVhsv(247, 74%, 51%)
CMYKcmyk(65.4%, 73.8%, 0%, 49%)
CIE-LABlab(21.26, 34.92, -52.15)
CIE-LCHlch(21.26, 62.76, 303.81°)
OKLaboklab(33.62% 0.0251 -0.1504)
OKLCHoklch(33.62% 0.153 279.5)
XYZxyz(5.6822, 3.3132, 21.4548)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2282 #778222
analogous
#224782 #2D2282 #5D2282
triadic
#2D2282 #822D22 #22822D
tetradic
#2D2282 #822247 #778222 #22825D
square
#2D2282 #822247 #778222 #22825D
split-complementary
#2D2282 #825D22 #478222
monochromatic
#0B0921 #1C1551 #2D2282 #3E2FB3 #5D4ED1

Accessibility & contrast

On white

12.63
#2D2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2282
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2282#FFFFFF#000000##FFFFFF
##2D22821.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2282;
/* rgb */ color: rgb(45, 34, 130);
/* oklch */ color: oklch(33.6% 0.153 279.5);
Tailwind
colors: {
  custom: {
    50: '#725fa7',
    500: '#2d2282',
    950: '#000000',
  },
}
SCSS
$custom: #2d2282;
$custom-light: #725fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2282",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 246.875,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.15253,
    "h": 279.5
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#2D2282
secondary
#A8B44C
accent
#E246D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2282

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

Preview Lab → · Contrast checker → · Palette generator →

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