#2D3287#2D3287

#2D3287 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.140 H 274.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2D3287
RGBrgb(45, 50, 135)
HSLhsl(237, 50%, 35%)
HSVhsv(237, 67%, 53%)
CMYKcmyk(66.7%, 63%, 0%, 47.1%)
CIE-LABlab(25.53, 26.46, -48.29)
CIE-LCHlch(25.53, 55.07, 298.72°)
OKLaboklab(36.86% 0.0113 -0.1391)
OKLCHoklch(36.86% 0.14 274.7)
XYZxyz(6.5945, 4.5878, 23.4550)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3287 #87822D
analogous
#2D5F87 #2D3287 #552D87
triadic
#2D3287 #872D32 #32872D
tetradic
#2D3287 #872D5F #87822D #2D8755
square
#2D3287 #872D5F #87822D #2D8755
split-complementary
#2D3287 #87552D #5F872D
monochromatic
#0E102B #1E2159 #2D3287 #3C43B5 #6369CB

Accessibility & contrast

On white

10.95
#2D3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3287
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3287#FFFFFF#000000##FFFFFF
##2D32871.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d3287;
/* rgb */ color: rgb(45, 50, 135);
/* oklch */ color: oklch(36.9% 0.140 274.7);
Tailwind
colors: {
  custom: {
    50: '#716aab',
    500: '#2d3287',
    950: '#000000',
  },
}
SCSS
$custom: #2d3287;
$custom-light: #716aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3287",
  "rgb": {
    "r": 45,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 236.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.13959,
    "h": 274.7
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#2D3287
secondary
#B2AD5E
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D3287

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

Preview Lab → · Contrast checker → · Palette generator →

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