#2D2187#2D2187

#2D2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.160 H 278.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2D2187
RGBrgb(45, 33, 135)
HSLhsl(247, 61%, 33%)
HSVhsv(247, 76%, 53%)
CMYKcmyk(66.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.56, 37.17, -54.80)
CIE-LCHlch(21.56, 66.21, 304.15°)
OKLaboklab(33.99% 0.0248 -0.1582)
OKLCHoklch(33.99% 0.16 278.9)
XYZxyz(5.9978, 3.3944, 23.2561)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2187 #7B8721
analogous
#214887 #2D2187 #602187
triadic
#2D2187 #872D21 #21872D
tetradic
#2D2187 #872148 #7B8721 #218760
square
#2D2187 #872148 #7B8721 #218760
split-complementary
#2D2187 #876021 #488721
monochromatic
#0C0925 #1D1556 #2D2187 #3D2DB8 #5E4FD4

Accessibility & contrast

On white

12.51
#2D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2187
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2187#FFFFFF#000000##FFFFFF
##2D21871.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2187;
/* rgb */ color: rgb(45, 33, 135);
/* oklch */ color: oklch(34.0% 0.160 278.9);
Tailwind
colors: {
  custom: {
    50: '#735eab',
    500: '#2d2187',
    950: '#000000',
  },
}
SCSS
$custom: #2d2187;
$custom-light: #735eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2187",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 247.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.16012,
    "h": 278.9
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#2D2187
secondary
#ABB74D
accent
#E444D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2187

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

Preview Lab → · Contrast checker → · Palette generator →

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