#2D3381#2D3381

#2D3381 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.130 H 274.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D3381
RGBrgb(45, 51, 129)
HSLhsl(236, 48%, 34%)
HSVhsv(236, 65%, 51%)
CMYKcmyk(65.1%, 60.5%, 0%, 49.4%)
CIE-LABlab(25.29, 23.59, -44.92)
CIE-LCHlch(25.29, 50.74, 297.71°)
OKLaboklab(36.53% 0.0105 -0.1292)
OKLCHoklch(36.53% 0.13 274.7)
XYZxyz(6.2272, 4.5100, 21.3070)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3381 #817B2D
analogous
#2D5D81 #2D3381 #512D81
triadic
#2D3381 #812D33 #33812D
tetradic
#2D3381 #812D5D #817B2D #2D8151
square
#2D3381 #812D5D #817B2D #2D8151
split-complementary
#2D3381 #81512D #5D812D
monochromatic
#0D0F26 #1D2154 #2D3381 #3D45AE #6168C8

Accessibility & contrast

On white

11.04
#2D3381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D3381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3381
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3381#FFFFFF#000000##FFFFFF
##2D33811.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d3381;
/* rgb */ color: rgb(45, 51, 129);
/* oklch */ color: oklch(36.5% 0.130 274.7);
Tailwind
colors: {
  custom: {
    50: '#706aa6',
    500: '#2d3381',
    950: '#000000',
  },
}
SCSS
$custom: #2d3381;
$custom-light: #706aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3381",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 235.714,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36532,
    "c": 0.12964,
    "h": 274.7
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#2D3381
secondary
#AEA85C
accent
#CE50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D3381

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

Preview Lab → · Contrast checker → · Palette generator →

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