#2D2DCC#2D2DCC

#2D2DCC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.1% C 0.232 H 271.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2D2DCC
RGBrgb(45, 45, 204)
HSLhsl(240, 64%, 49%)
HSVhsv(240, 78%, 80%)
CMYKcmyk(77.9%, 77.9%, 0%, 20%)
CIE-LABlab(31.33, 53.05, -80.28)
CIE-LCHlch(31.33, 96.23, 303.45°)
OKLaboklab(43.09% 0.0045 -0.2324)
OKLCHoklch(43.09% 0.232 271.1)
XYZxyz(12.9160, 6.7929, 57.7455)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2DCC #CCCC2D
analogous
#2D7DCC #2D2DCC #7D2DCC
triadic
#2D2DCC #CC2D2D #2DCC2D
tetradic
#2D2DCC #CC2D7D #CCCC2D #2DCC7D
square
#2D2DCC #CC2D7D #CCCC2D #2DCC7D
split-complementary
#2D2DCC #CC7D2D #7DCC2D
monochromatic
#171768 #22229A #2D2DCC #5B5BDB #8D8DE6

Accessibility & contrast

On white

8.90
#2D2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2DCC
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2DCC#FFFFFF#000000##FFFFFF
##2D2DCC1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D0
Deuteranopia (green-blind)
#0041C9
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d2dcc;
/* rgb */ color: rgb(45, 45, 204);
/* oklch */ color: oklch(43.1% 0.232 271.1);
Tailwind
colors: {
  custom: {
    50: '#8269dd',
    500: '#2d2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #2d2dcc;
$custom-light: #8269dd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2dcc",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43088,
    "c": 0.23248,
    "h": 271.1
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#2D2DCC
secondary
#D0D085
accent
#E741E7
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #2D2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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