#2D2087#2D2087

#2D2087 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.161 H 279.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2D2087
RGBrgb(45, 32, 135)
HSLhsl(248, 62%, 33%)
HSVhsv(248, 76%, 53%)
CMYKcmyk(66.7%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.36, 37.74, -55.13)
CIE-LCHlch(21.36, 66.81, 304.40°)
OKLaboklab(33.85% 0.0254 -0.1592)
OKLCHoklch(33.85% 0.161 279.1)
XYZxyz(5.9705, 3.3397, 23.2470)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2087 #7A8720
analogous
#204687 #2D2087 #612087
triadic
#2D2087 #872D20 #20872D
tetradic
#2D2087 #872046 #7A8720 #208761
square
#2D2087 #872046 #7A8720 #208761
split-complementary
#2D2087 #876120 #468720
monochromatic
#0C0924 #1D1456 #2D2087 #3D2CB8 #5E4DD5

Accessibility & contrast

On white

12.59
#2D2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2087
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2087#FFFFFF#000000##FFFFFF
##2D20871.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2087;
/* rgb */ color: rgb(45, 32, 135);
/* oklch */ color: oklch(33.9% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#735eab',
    500: '#2d2087',
    950: '#000000',
  },
}
SCSS
$custom: #2d2087;
$custom-light: #735eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2087",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 247.573,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.16118,
    "h": 279.1
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#2D2087
secondary
#AAB84B
accent
#E543D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2087

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

Preview Lab → · Contrast checker → · Palette generator →

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