#2D3781#2D3781

#2D3781 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.124 H 273.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2D3781
RGBrgb(45, 55, 129)
HSLhsl(233, 48%, 34%)
HSVhsv(233, 65%, 51%)
CMYKcmyk(65.1%, 57.4%, 0%, 49.4%)
CIE-LABlab(26.37, 20.87, -43.16)
CIE-LCHlch(26.37, 47.94, 295.80°)
OKLaboklab(37.34% 0.0066 -0.124)
OKLCHoklch(37.34% 0.124 273)
XYZxyz(6.4095, 4.8747, 21.3678)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3781 #81772D
analogous
#2D6181 #2D3781 #4D2D81
triadic
#2D3781 #812D37 #37812D
tetradic
#2D3781 #812D61 #81772D #2D814D
square
#2D3781 #812D61 #81772D #2D814D
split-complementary
#2D3781 #814D2D #61812D
monochromatic
#0D1026 #1D2454 #2D3781 #3D4AAE #616DC8

Accessibility & contrast

On white

10.63
#2D3781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D3781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3781
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3781#FFFFFF#000000##FFFFFF
##2D37811.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d3781;
/* rgb */ color: rgb(45, 55, 129);
/* oklch */ color: oklch(37.3% 0.124 273.0);
Tailwind
colors: {
  custom: {
    50: '#706da6',
    500: '#2d3781',
    950: '#000000',
  },
}
SCSS
$custom: #2d3781;
$custom-light: #706da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3781",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 232.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3734,
    "c": 0.12417,
    "h": 273
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#2D3781
secondary
#AEA45C
accent
#C850D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3781

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

Preview Lab → · Contrast checker → · Palette generator →

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