#2D2DB7#2D2DB7

#2D2DB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.208 H 272.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2D2DB7
RGBrgb(45, 45, 183)
HSLhsl(240, 61%, 45%)
HSVhsv(240, 75%, 72%)
CMYKcmyk(75.4%, 75.4%, 0%, 28.2%)
CIE-LABlab(29.04, 46.28, -71.73)
CIE-LCHlch(29.04, 85.36, 302.83°)
OKLaboklab(40.8% 0.0085 -0.2076)
OKLCHoklch(40.8% 0.208 272.3)
XYZxyz(10.5649, 5.8524, 45.3634)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2DB7 #B7B72D
analogous
#2D72B7 #2D2DB7 #722DB7
triadic
#2D2DB7 #B72D2D #2DB72D
tetradic
#2D2DB7 #B72D72 #B7B72D #2DB772
square
#2D2DB7 #B72D72 #B7B72D #2DB772
split-complementary
#2D2DB7 #B7722D #72B72D
monochromatic
#151555 #212186 #2D2DB7 #4E4ED3 #7F7FDF

Accessibility & contrast

On white

9.67
#2D2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2DB7
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2DB7#FFFFFF#000000##FFFFFF
##2D2DB71.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d2db7;
/* rgb */ color: rgb(45, 45, 183);
/* oklch */ color: oklch(40.8% 0.208 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d68ce',
    500: '#2d2db7',
    950: '#000000',
  },
}
SCSS
$custom: #2d2db7;
$custom-light: #7d68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2db7",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.408,
    "c": 0.20777,
    "h": 272.3
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#2D2DB7
secondary
#C8C878
accent
#E444E4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2D2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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