#2D3C87#2D3C87

#2D3C87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.126 H 270.9°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2D3C87
RGBrgb(45, 60, 135)
HSLhsl(230, 50%, 35%)
HSVhsv(230, 67%, 53%)
CMYKcmyk(66.7%, 55.6%, 0%, 47.1%)
CIE-LABlab(28.22, 19.69, -43.93)
CIE-LCHlch(28.22, 48.14, 294.14°)
OKLaboklab(38.87% 0.0019 -0.1262)
OKLCHoklch(38.87% 0.126 270.9)
XYZxyz(7.0697, 5.5382, 23.6134)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C87 #87782D
analogous
#2D6987 #2D3C87 #4B2D87
triadic
#2D3C87 #872D3C #3C872D
tetradic
#2D3C87 #872D69 #87782D #2D874B
square
#2D3C87 #872D69 #87782D #2D874B
split-complementary
#2D3C87 #874B2D #69872D
monochromatic
#0E132B #1E2859 #2D3C87 #3C50B5 #6375CB

Accessibility & contrast

On white

9.96
#2D3C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3C87
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C87#FFFFFF#000000##FFFFFF
##2D3C871.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3c87;
/* rgb */ color: rgb(45, 60, 135);
/* oklch */ color: oklch(38.9% 0.126 270.9);
Tailwind
colors: {
  custom: {
    50: '#7171ab',
    500: '#2d3c87',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c87;
$custom-light: #7171ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c87",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 230,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38866,
    "c": 0.12618,
    "h": 270.9
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#2D3C87
secondary
#B2A45E
accent
#C24EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3C87

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

Preview Lab → · Contrast checker → · Palette generator →

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