#2D3981#2D3981

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

Color values

HEX#2D3981
RGBrgb(45, 57, 129)
HSLhsl(231, 48%, 34%)
HSVhsv(231, 65%, 51%)
CMYKcmyk(65.1%, 55.8%, 0%, 49.4%)
CIE-LABlab(26.93, 19.50, -42.27)
CIE-LCHlch(26.93, 46.55, 294.76°)
OKLaboklab(37.76% 0.0046 -0.1213)
OKLCHoklch(37.76% 0.121 272.2)
XYZxyz(6.5064, 5.0686, 21.4001)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3981 #81752D
analogous
#2D6381 #2D3981 #4B2D81
triadic
#2D3981 #812D39 #39812D
tetradic
#2D3981 #812D63 #81752D #2D814B
square
#2D3981 #812D63 #81752D #2D814B
split-complementary
#2D3981 #814B2D #63812D
monochromatic
#0D1126 #1D2554 #2D3981 #3D4DAE #616FC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D3981#FFFFFF#000000##FFFFFF
##2D39811.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)
#074384
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3981;
/* rgb */ color: rgb(45, 57, 129);
/* oklch */ color: oklch(37.8% 0.121 272.2);
Tailwind
colors: {
  custom: {
    50: '#706fa6',
    500: '#2d3981',
    950: '#000000',
  },
}
SCSS
$custom: #2d3981;
$custom-light: #706fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3981",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 129
  },
  "hsl": {
    "h": 231.429,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.12142,
    "h": 272.2
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#2D3981
secondary
#AEA25C
accent
#C450D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3981

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

Preview Lab → · Contrast checker → · Palette generator →

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