#2D337D#2D337D

#2D337D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.124 H 274.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2D337D
RGBrgb(45, 51, 125)
HSLhsl(236, 47%, 33%)
HSVhsv(236, 64%, 49%)
CMYKcmyk(64%, 59.2%, 0%, 51%)
CIE-LABlab(24.97, 22.12, -42.93)
CIE-LCHlch(24.97, 48.29, 297.26°)
OKLaboklab(36.19% 0.0105 -0.1233)
OKLCHoklch(36.19% 0.124 274.9)
XYZxyz(5.9665, 4.4057, 19.9340)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D337D #7D772D
analogous
#2D5B7D #2D337D #4F2D7D
triadic
#2D337D #7D2D33 #337D2D
tetradic
#2D337D #7D2D5B #7D772D #2D7D4F
square
#2D337D #7D2D5B #7D772D #2D7D4F
split-complementary
#2D337D #7D4F2D #5B7D2D
monochromatic
#0D0E23 #1D2150 #2D337D #3D45AA #5F67C5

Accessibility & contrast

On white

11.16
#2D337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D337D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D337D#FFFFFF#000000##FFFFFF
##2D337D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d337d;
/* rgb */ color: rgb(45, 51, 125);
/* oklch */ color: oklch(36.2% 0.124 274.9);
Tailwind
colors: {
  custom: {
    50: '#6f6aa3',
    500: '#2d337d',
    950: '#000000',
  },
}
SCSS
$custom: #2d337d;
$custom-light: #6f6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d337d",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 235.5,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36193,
    "c": 0.12379,
    "h": 274.9
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#2D337D
secondary
#ACA65A
accent
#CD51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D337D

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

Preview Lab → · Contrast checker → · Palette generator →

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