#2D2185#2D2185

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

Color values

HEX#2D2185
RGBrgb(45, 33, 133)
HSLhsl(247, 60%, 33%)
HSVhsv(247, 75%, 52%)
CMYKcmyk(66.2%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.35, 36.51, -53.88)
CIE-LCHlch(21.35, 65.08, 304.12°)
OKLaboklab(33.78% 0.0252 -0.1555)
OKLCHoklch(33.78% 0.158 279.2)
XYZxyz(5.8583, 3.3386, 22.5214)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2185 #798521
analogous
#214785 #2D2185 #5F2185
triadic
#2D2185 #852D21 #21852D
tetradic
#2D2185 #852147 #798521 #21855F
square
#2D2185 #852147 #798521 #21855F
split-complementary
#2D2185 #855F21 #478521
monochromatic
#0C0923 #1C1554 #2D2185 #3E2DB6 #5D4DD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2185#FFFFFF#000000##FFFFFF
##2D21851.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)
#003788
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2185;
/* rgb */ color: rgb(45, 33, 133);
/* oklch */ color: oklch(33.8% 0.158 279.2);
Tailwind
colors: {
  custom: {
    50: '#725eaa',
    500: '#2d2185',
    950: '#000000',
  },
}
SCSS
$custom: #2d2185;
$custom-light: #725eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2185",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 247.2,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.15755,
    "h": 279.2
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#2D2185
secondary
#A9B64C
accent
#E344D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2185

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

Preview Lab → · Contrast checker → · Palette generator →

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