#2D3377#2D3377

#2D3377 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.115 H 275.2°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2D3377
RGBrgb(45, 51, 119)
HSLhsl(235, 45%, 32%)
HSVhsv(235, 62%, 47%)
CMYKcmyk(62.2%, 57.1%, 0%, 53.3%)
CIE-LABlab(24.50, 19.91, -39.88)
CIE-LCHlch(24.50, 44.58, 296.53°)
OKLaboklab(35.7% 0.0103 -0.1144)
OKLCHoklch(35.7% 0.115 275.2)
XYZxyz(5.5947, 4.2570, 17.9761)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3377 #77712D
analogous
#2D5877 #2D3377 #4C2D77
triadic
#2D3377 #772D33 #33772D
tetradic
#2D3377 #772D58 #77712D #2D774C
square
#2D3377 #772D58 #77712D #2D774C
split-complementary
#2D3377 #774C2D #58772D
monochromatic
#0B0D1E #1C204B #2D3377 #3E46A3 #5D65C2

Accessibility & contrast

On white

11.34
#2D3377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D3377 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3377
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3377#FFFFFF#000000##FFFFFF
##2D33771.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033D79
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#00434F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d3377;
/* rgb */ color: rgb(45, 51, 119);
/* oklch */ color: oklch(35.7% 0.115 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e6a9f',
    500: '#2d3377',
    950: '#000000',
  },
}
SCSS
$custom: #2d3377;
$custom-light: #6e6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3377",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 119
  },
  "hsl": {
    "h": 235.135,
    "s": 45.122,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.11486,
    "h": 275.2
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#2D3377
secondary
#A8A258
accent
#CA53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2D3377

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

Preview Lab → · Contrast checker → · Palette generator →

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