#2D3788#2D3788

#2D3788 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.134 H 272.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2D3788
RGBrgb(45, 55, 136)
HSLhsl(233, 50%, 35%)
HSVhsv(233, 67%, 53%)
CMYKcmyk(66.9%, 59.6%, 0%, 46.7%)
CIE-LABlab(26.93, 23.46, -46.64)
CIE-LCHlch(26.93, 52.21, 296.71°)
OKLaboklab(37.92% 0.0068 -0.1342)
OKLCHoklch(37.92% 0.134 272.9)
XYZxyz(6.8908, 5.0672, 23.9027)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3788 #887E2D
analogous
#2D6488 #2D3788 #512D88
triadic
#2D3788 #882D37 #37882D
tetradic
#2D3788 #882D64 #887E2D #2D8851
square
#2D3788 #882D64 #887E2D #2D8851
split-complementary
#2D3788 #88512D #64882D
monochromatic
#0F122C #1E245A #2D3788 #3C4AB6 #646FCC

Accessibility & contrast

On white

10.43
#2D3788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3788
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3788#FFFFFF#000000##FFFFFF
##2D37881.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3788;
/* rgb */ color: rgb(45, 55, 136);
/* oklch */ color: oklch(37.9% 0.134 272.9);
Tailwind
colors: {
  custom: {
    50: '#716dab',
    500: '#2d3788',
    950: '#000000',
  },
}
SCSS
$custom: #2d3788;
$custom-light: #716dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3788",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 233.407,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.13439,
    "h": 272.9
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3788

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

Preview Lab → · Contrast checker → · Palette generator →

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