#2D3F87#2D3F87

#2D3F87 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.122 H 269.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2D3F87
RGBrgb(45, 63, 135)
HSLhsl(228, 50%, 35%)
HSVhsv(228, 67%, 53%)
CMYKcmyk(66.7%, 53.3%, 0%, 47.1%)
CIE-LABlab(29.06, 17.64, -42.56)
CIE-LCHlch(29.06, 46.07, 292.51°)
OKLaboklab(39.5% -0.001 -0.1221)
OKLCHoklch(39.5% 0.122 269.5)
XYZxyz(7.2314, 5.8615, 23.6673)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F87 #87752D
analogous
#2D6C87 #2D3F87 #482D87
triadic
#2D3F87 #872D3F #3F872D
tetradic
#2D3F87 #872D6C #87752D #2D8748
square
#2D3F87 #872D6C #87752D #2D8748
split-complementary
#2D3F87 #87482D #6C872D
monochromatic
#0E142B #1E2A59 #2D3F87 #3C54B5 #6378CB

Accessibility & contrast

On white

9.67
#2D3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F87
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F87#FFFFFF#000000##FFFFFF
##2D3F871.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3f87;
/* rgb */ color: rgb(45, 63, 135);
/* oklch */ color: oklch(39.5% 0.122 269.5);
Tailwind
colors: {
  custom: {
    50: '#7073aa',
    500: '#2d3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f87;
$custom-light: #7073aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f87",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 228,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39502,
    "c": 0.12212,
    "h": 269.5
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#2D3F87
secondary
#B2A15E
accent
#BE4EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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