#2D3881#2D3881

#2D3881 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.123 H 272.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2D3881
RGBrgb(45, 56, 129)
HSLhsl(232, 48%, 34%)
HSVhsv(232, 65%, 51%)
CMYKcmyk(65.1%, 56.6%, 0%, 49.4%)
CIE-LABlab(26.65, 20.18, -42.72)
CIE-LCHlch(26.65, 47.24, 295.29°)
OKLaboklab(37.55% 0.0056 -0.1227)
OKLCHoklch(37.55% 0.123 272.6)
XYZxyz(6.4575, 4.9707, 21.3838)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3881 #81762D
analogous
#2D6281 #2D3881 #4C2D81
triadic
#2D3881 #812D38 #38812D
tetradic
#2D3881 #812D62 #81762D #2D814C
square
#2D3881 #812D62 #81762D #2D814C
split-complementary
#2D3881 #814C2D #62812D
monochromatic
#0D1126 #1D2454 #2D3881 #3D4CAE #616EC8

Accessibility & contrast

On white

10.53
#2D3881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D3881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3881
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3881#FFFFFF#000000##FFFFFF
##2D38811.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024384
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3881;
/* rgb */ color: rgb(45, 56, 129);
/* oklch */ color: oklch(37.5% 0.123 272.6);
Tailwind
colors: {
  custom: {
    50: '#706ea6',
    500: '#2d3881',
    950: '#000000',
  },
}
SCSS
$custom: #2d3881;
$custom-light: #706ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3881",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 129
  },
  "hsl": {
    "h": 232.143,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.1228,
    "h": 272.6
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#2D3881
secondary
#AEA35C
accent
#C650D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3881

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

Preview Lab → · Contrast checker → · Palette generator →

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