#2D2489#2D2489

#2D2489 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.159 H 278.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D2489
RGBrgb(45, 36, 137)
HSLhsl(245, 58%, 34%)
HSVhsv(245, 74%, 54%)
CMYKcmyk(67.2%, 73.7%, 0%, 46.3%)
CIE-LABlab(22.39, 36.08, -54.68)
CIE-LCHlch(22.39, 65.51, 303.42°)
OKLaboklab(34.65% 0.0223 -0.1579)
OKLCHoklch(34.65% 0.159 278)
XYZxyz(6.2270, 3.6253, 24.0337)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2489 #808924
analogous
#244E89 #2D2489 #602489
triadic
#2D2489 #892D24 #24892D
tetradic
#2D2489 #89244E #808924 #248960
square
#2D2489 #89244E #808924 #248960
split-complementary
#2D2489 #896024 #4E8924
monochromatic
#0D0B28 #1D1759 #2D2489 #3D31B9 #6055D2

Accessibility & contrast

On white

12.17
#2D2489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2489
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2489#FFFFFF#000000##FFFFFF
##2D24891.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2489;
/* rgb */ color: rgb(45, 36, 137);
/* oklch */ color: oklch(34.6% 0.159 278.0);
Tailwind
colors: {
  custom: {
    50: '#7360ac',
    500: '#2d2489',
    950: '#000000',
  },
}
SCSS
$custom: #2d2489;
$custom-light: #7360ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2489",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 245.347,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34647,
    "c": 0.15943,
    "h": 278
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#2D2489
secondary
#AEB752
accent
#E246D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2489

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

Preview Lab → · Contrast checker → · Palette generator →

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