#2D3E87#2D3E87

#2D3E87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.123 H 270.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2D3E87
RGBrgb(45, 62, 135)
HSLhsl(229, 50%, 35%)
HSVhsv(229, 67%, 53%)
CMYKcmyk(66.7%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.78, 18.32, -43.02)
CIE-LCHlch(28.78, 46.76, 293.07°)
OKLaboklab(39.29% 0 -0.1235)
OKLCHoklch(39.29% 0.123 270)
XYZxyz(7.1765, 5.7518, 23.6490)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3E87 #87762D
analogous
#2D6B87 #2D3E87 #492D87
triadic
#2D3E87 #872D3E #3E872D
tetradic
#2D3E87 #872D6B #87762D #2D8749
square
#2D3E87 #872D6B #87762D #2D8749
split-complementary
#2D3E87 #87492D #6B872D
monochromatic
#0E142B #1E2959 #2D3E87 #3C53B5 #6377CB

Accessibility & contrast

On white

9.77
#2D3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3E87
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3E87#FFFFFF#000000##FFFFFF
##2D3E871.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3e87;
/* rgb */ color: rgb(45, 62, 135);
/* oklch */ color: oklch(39.3% 0.123 270.0);
Tailwind
colors: {
  custom: {
    50: '#7072aa',
    500: '#2d3e87',
    950: '#000000',
  },
}
SCSS
$custom: #2d3e87;
$custom-light: #7072aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3e87",
  "rgb": {
    "r": 45,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 228.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39288,
    "c": 0.12348,
    "h": 270
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#2D3E87
secondary
#B2A25E
accent
#BF4EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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