#2D2D7B#2D2D7B

#2D2D7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.129 H 277.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D2D7B
RGBrgb(45, 45, 123)
HSLhsl(240, 46%, 33%)
HSVhsv(240, 63%, 48%)
CMYKcmyk(63.4%, 63.4%, 0%, 51.8%)
CIE-LABlab(23.22, 25.46, -44.51)
CIE-LCHlch(23.22, 51.27, 299.77°)
OKLaboklab(34.85% 0.0165 -0.128)
OKLCHoklch(34.85% 0.129 277.3)
XYZxyz(5.5946, 3.8643, 19.1861)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D7B #7B7B2D
analogous
#2D547B #2D2D7B #542D7B
triadic
#2D2D7B #7B2D2D #2D7B2D
tetradic
#2D2D7B #7B2D54 #7B7B2D #2D7B54
square
#2D2D7B #7B2D54 #7B7B2D #2D7B54
split-complementary
#2D2D7B #7B542D #547B2D
monochromatic
#0C0C21 #1D1D4E #2D2D7B #3D3DA8 #5E5EC4

Accessibility & contrast

On white

11.84
#2D2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D7B
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D7B#FFFFFF#000000##FFFFFF
##2D2D7B1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2d7b;
/* rgb */ color: rgb(45, 45, 123);
/* oklch */ color: oklch(34.8% 0.129 277.3);
Tailwind
colors: {
  custom: {
    50: '#6f66a2',
    500: '#2d2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d7b;
$custom-light: #6f66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d7b",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.12911,
    "h": 277.3
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#2D2D7B
secondary
#ABAB59
accent
#D652D6
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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