#2D3787#2D3787

#2D3787 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.133 H 272.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2D3787
RGBrgb(45, 55, 135)
HSLhsl(233, 50%, 35%)
HSVhsv(233, 67%, 53%)
CMYKcmyk(66.7%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.85, 23.09, -46.15)
CIE-LCHlch(26.85, 51.60, 296.58°)
OKLaboklab(37.84% 0.0068 -0.1328)
OKLCHoklch(37.84% 0.133 272.9)
XYZxyz(6.8201, 5.0389, 23.5302)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3787 #877D2D
analogous
#2D6487 #2D3787 #502D87
triadic
#2D3787 #872D37 #37872D
tetradic
#2D3787 #872D64 #877D2D #2D8750
square
#2D3787 #872D64 #877D2D #2D8750
split-complementary
#2D3787 #87502D #64872D
monochromatic
#0E122B #1E2459 #2D3787 #3C4AB5 #636FCB

Accessibility & contrast

On white

10.46
#2D3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2D3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3787
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3787#FFFFFF#000000##FFFFFF
##2D37871.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3787;
/* rgb */ color: rgb(45, 55, 135);
/* oklch */ color: oklch(37.8% 0.133 272.9);
Tailwind
colors: {
  custom: {
    50: '#716dab',
    500: '#2d3787',
    950: '#000000',
  },
}
SCSS
$custom: #2d3787;
$custom-light: #716dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3787",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 233.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3784,
    "c": 0.13294,
    "h": 272.9
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#2D3787
secondary
#B2A85E
accent
#CA4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3787

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

Preview Lab → · Contrast checker → · Palette generator →

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