#2D337F#2D337F

#2D337F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.127 H 274.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2D337F
RGBrgb(45, 51, 127)
HSLhsl(236, 48%, 34%)
HSVhsv(236, 65%, 50%)
CMYKcmyk(64.6%, 59.8%, 0%, 50.2%)
CIE-LABlab(25.13, 22.86, -43.93)
CIE-LCHlch(25.13, 49.52, 297.49°)
OKLaboklab(36.36% 0.0105 -0.1263)
OKLCHoklch(36.36% 0.127 274.8)
XYZxyz(6.0955, 4.4573, 20.6137)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D337F #7F792D
analogous
#2D5C7F #2D337F #502D7F
triadic
#2D337F #7F2D33 #337F2D
tetradic
#2D337F #7F2D5C #7F792D #2D7F50
square
#2D337F #7F2D5C #7F792D #2D7F50
split-complementary
#2D337F #7F502D #5C7F2D
monochromatic
#0D0F25 #1D2152 #2D337F #3D45AC #6067C7

Accessibility & contrast

On white

11.10
#2D337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D337F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D337F#FFFFFF#000000##FFFFFF
##2D337F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d337f;
/* rgb */ color: rgb(45, 51, 127);
/* oklch */ color: oklch(36.4% 0.127 274.8);
Tailwind
colors: {
  custom: {
    50: '#706aa5',
    500: '#2d337f',
    950: '#000000',
  },
}
SCSS
$custom: #2d337f;
$custom-light: #706aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d337f",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 235.61,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.12673,
    "h": 274.8
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D337F

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

Preview Lab → · Contrast checker → · Palette generator →

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