#2D2D7E#2D2D7E

#2D2D7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.133 H 277.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2D2D7E
RGBrgb(45, 45, 126)
HSLhsl(240, 47%, 34%)
HSVhsv(240, 64%, 49%)
CMYKcmyk(64.3%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.47, 26.54, -45.99)
CIE-LCHlch(23.47, 53.10, 299.98°)
OKLaboklab(35.11% 0.0164 -0.1324)
OKLCHoklch(35.11% 0.133 277)
XYZxyz(5.7853, 3.9406, 20.1904)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D7E #7E7E2D
analogous
#2D557E #2D2D7E #552D7E
triadic
#2D2D7E #7E2D2D #2D7E2D
tetradic
#2D2D7E #7E2D55 #7E7E2D #2D7E55
square
#2D2D7E #7E2D55 #7E7E2D #2D7E55
split-complementary
#2D2D7E #7E552D #557E2D
monochromatic
#0D0D24 #1D1D51 #2D2D7E #3D3DAB #5F5FC6

Accessibility & contrast

On white

11.74
#2D2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D7E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D7E#FFFFFF#000000##FFFFFF
##2D2D7E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2d7e;
/* rgb */ color: rgb(45, 45, 126);
/* oklch */ color: oklch(35.1% 0.133 277.0);
Tailwind
colors: {
  custom: {
    50: '#7066a4',
    500: '#2d2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d7e;
$custom-light: #7066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d7e",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.13341,
    "h": 277
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#2D2D7E
secondary
#ACAC5A
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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