#2D2884#2D2884

#2D2884 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.148 H 277.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D2884
RGBrgb(45, 40, 132)
HSLhsl(243, 53%, 34%)
HSVhsv(243, 70%, 52%)
CMYKcmyk(65.9%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.80, 31.91, -50.88)
CIE-LCHlch(22.80, 60.06, 302.10°)
OKLaboklab(34.79% 0.0201 -0.1468)
OKLCHoklch(34.79% 0.148 277.8)
XYZxyz(6.0045, 3.7409, 22.2310)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2884 #7F8428
analogous
#285184 #2D2884 #5B2884
triadic
#2D2884 #842D28 #28842D
tetradic
#2D2884 #842851 #7F8428 #28845B
square
#2D2884 #842851 #7F8428 #28845B
split-complementary
#2D2884 #845B28 #518428
monochromatic
#0D0C26 #1D1A55 #2D2884 #3D36B3 #605ACD

Accessibility & contrast

On white

12.01
#2D2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2884
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2884#FFFFFF#000000##FFFFFF
##2D28841.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2884;
/* rgb */ color: rgb(45, 40, 132);
/* oklch */ color: oklch(34.8% 0.148 277.8);
Tailwind
colors: {
  custom: {
    50: '#7263a9',
    500: '#2d2884',
    950: '#000000',
  },
}
SCSS
$custom: #2d2884;
$custom-light: #7263a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2884",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 243.261,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.14813,
    "h": 277.8
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#2D2884
secondary
#ADB256
accent
#DD4BD5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2884

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

Preview Lab → · Contrast checker → · Palette generator →

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