#2D337C#2D337C

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

Color values

HEX#2D337C
RGBrgb(45, 51, 124)
HSLhsl(235, 47%, 33%)
HSVhsv(235, 64%, 49%)
CMYKcmyk(63.7%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.89, 21.75, -42.42)
CIE-LCHlch(24.89, 47.68, 297.15°)
OKLaboklab(36.11% 0.0105 -0.1219)
OKLCHoklch(36.11% 0.122 274.9)
XYZxyz(5.9029, 4.3803, 19.5993)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D337C #7C762D
analogous
#2D5A7C #2D337C #4E2D7C
triadic
#2D337C #7C2D33 #337C2D
tetradic
#2D337C #7C2D5A #7C762D #2D7C4E
square
#2D337C #7C2D5A #7C762D #2D7C4E
split-complementary
#2D337C #7C4E2D #5A7C2D
monochromatic
#0C0E22 #1D214F #2D337C #3D45A9 #5F66C5

Accessibility & contrast

On white

11.19
#2D337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D337C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D337C#FFFFFF#000000##FFFFFF
##2D337C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d337c;
/* rgb */ color: rgb(45, 51, 124);
/* oklch */ color: oklch(36.1% 0.122 274.9);
Tailwind
colors: {
  custom: {
    50: '#6f6aa2',
    500: '#2d337c',
    950: '#000000',
  },
}
SCSS
$custom: #2d337c;
$custom-light: #6f6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d337c",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 235.443,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36109,
    "c": 0.12231,
    "h": 274.9
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#2D337C
secondary
#ABA55A
accent
#CC51D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D337C

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

Preview Lab → · Contrast checker → · Palette generator →

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