#2D337E#2D337E

#2D337E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.125 H 274.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2D337E
RGBrgb(45, 51, 126)
HSLhsl(236, 47%, 34%)
HSVhsv(236, 64%, 49%)
CMYKcmyk(64.3%, 59.5%, 0%, 50.6%)
CIE-LABlab(25.05, 22.49, -43.43)
CIE-LCHlch(25.05, 48.91, 297.38°)
OKLaboklab(36.28% 0.0105 -0.1248)
OKLCHoklch(36.28% 0.125 274.8)
XYZxyz(6.0307, 4.4314, 20.2722)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D337E #7E782D
analogous
#2D5B7E #2D337E #4F2D7E
triadic
#2D337E #7E2D33 #337E2D
tetradic
#2D337E #7E2D5B #7E782D #2D7E4F
square
#2D337E #7E2D5B #7E782D #2D7E4F
split-complementary
#2D337E #7E4F2D #5B7E2D
monochromatic
#0D0E24 #1D2151 #2D337E #3D45AB #5F67C6

Accessibility & contrast

On white

11.13
#2D337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D337E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D337E#FFFFFF#000000##FFFFFF
##2D337E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d337e;
/* rgb */ color: rgb(45, 51, 126);
/* oklch */ color: oklch(36.3% 0.125 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f6aa4',
    500: '#2d337e',
    950: '#000000',
  },
}
SCSS
$custom: #2d337e;
$custom-light: #6f6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d337e",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 235.556,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36277,
    "c": 0.12526,
    "h": 274.8
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D337E

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

Preview Lab → · Contrast checker → · Palette generator →

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