#2D3A8F#2D3A8F

#2D3A8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.140 H 271.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2D3A8F
RGBrgb(45, 58, 143)
HSLhsl(232, 52%, 37%)
HSVhsv(232, 69%, 56%)
CMYKcmyk(68.5%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.29, 24.04, -48.75)
CIE-LCHlch(28.29, 54.36, 296.25°)
OKLaboklab(39.12% 0.0041 -0.1404)
OKLCHoklch(39.12% 0.14 271.7)
XYZxyz(7.5515, 5.5665, 26.6578)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A8F #8F822D
analogous
#2D6B8F #2D3A8F #512D8F
triadic
#2D3A8F #8F2D3A #3A8F2D
tetradic
#2D3A8F #8F2D6B #8F822D #2D8F51
square
#2D3A8F #8F2D6B #8F822D #2D8F51
split-complementary
#2D3A8F #8F512D #6B8F2D
monochromatic
#101432 #1E2760 #2D3A8F #3C4DBE #6775CF

Accessibility & contrast

On white

9.94
#2D3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D3A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A8F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A8F#FFFFFF#000000##FFFFFF
##2D3A8F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3a8f;
/* rgb */ color: rgb(45, 58, 143);
/* oklch */ color: oklch(39.1% 0.140 271.7);
Tailwind
colors: {
  custom: {
    50: '#7270b0',
    500: '#2d3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a8f;
$custom-light: #7270b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a8f",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 232.041,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39118,
    "c": 0.14046,
    "h": 271.7
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#2D3A8F
secondary
#B6AB62
accent
#C94CDC
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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