#2D3C8A#2D3C8A

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

Color values

HEX#2D3C8A
RGBrgb(45, 60, 138)
HSLhsl(230, 51%, 36%)
HSVhsv(230, 67%, 54%)
CMYKcmyk(67.4%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.44, 20.81, -45.42)
CIE-LCHlch(28.44, 49.96, 294.62°)
OKLaboklab(39.11% 0.0021 -0.1306)
OKLCHoklch(39.11% 0.131 270.9)
XYZxyz(7.2839, 5.6239, 24.7415)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C8A #8A7B2D
analogous
#2D6A8A #2D3C8A #4C2D8A
triadic
#2D3C8A #8A2D3C #3C8A2D
tetradic
#2D3C8A #8A2D6A #8A7B2D #2D8A4C
square
#2D3C8A #8A2D6A #8A7B2D #2D8A4C
split-complementary
#2D3C8A #8A4C2D #6A8A2D
monochromatic
#0F142E #1E285C #2D3C8A #3C50B8 #6575CD

Accessibility & contrast

On white

9.88
#2D3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C8A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C8A#FFFFFF#000000##FFFFFF
##2D3C8A1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3c8a;
/* rgb */ color: rgb(45, 60, 138);
/* oklch */ color: oklch(39.1% 0.131 270.9);
Tailwind
colors: {
  custom: {
    50: '#7171ad',
    500: '#2d3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c8a;
$custom-light: #7171ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c8a",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 230.323,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39108,
    "c": 0.13058,
    "h": 270.9
  },
  "luminance": 0.05625
}

Semantic roles & 50–950 ramp

primary
#2D3C8A
secondary
#B3A660
accent
#C44DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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