#2D2188#2D2188

#2D2188 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.161 H 278.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2D2188
RGBrgb(45, 33, 136)
HSLhsl(247, 61%, 33%)
HSVhsv(247, 76%, 53%)
CMYKcmyk(66.9%, 75.7%, 0%, 46.7%)
CIE-LABlab(21.66, 37.50, -55.25)
CIE-LCHlch(21.66, 66.78, 304.17°)
OKLaboklab(34.1% 0.0245 -0.1595)
OKLCHoklch(34.1% 0.161 278.7)
XYZxyz(6.0686, 3.4227, 23.6286)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2188 #7C8821
analogous
#214888 #2D2188 #602188
triadic
#2D2188 #882D21 #21882D
tetradic
#2D2188 #882148 #7C8821 #218860
square
#2D2188 #882148 #7C8821 #218860
split-complementary
#2D2188 #886021 #488821
monochromatic
#0C0925 #1D1557 #2D2188 #3D2DB9 #5F4FD4

Accessibility & contrast

On white

12.47
#2D2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2188
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2188#FFFFFF#000000##FFFFFF
##2D21881.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2188;
/* rgb */ color: rgb(45, 33, 136);
/* oklch */ color: oklch(34.1% 0.161 278.7);
Tailwind
colors: {
  custom: {
    50: '#735eac',
    500: '#2d2188',
    950: '#000000',
  },
}
SCSS
$custom: #2d2188;
$custom-light: #735eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2188",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 246.99,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34098,
    "c": 0.1614,
    "h": 278.7
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2188

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

Preview Lab → · Contrast checker → · Palette generator →

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