#2D3D81#2D3D81

#2D3D81 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.116 H 270.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2D3D81
RGBrgb(45, 61, 129)
HSLhsl(229, 48%, 34%)
HSVhsv(229, 65%, 51%)
CMYKcmyk(65.1%, 52.7%, 0%, 49.4%)
CIE-LABlab(28.06, 16.75, -40.44)
CIE-LCHlch(28.06, 43.77, 292.50°)
OKLaboklab(38.61% 0.0004 -0.1159)
OKLCHoklch(38.61% 0.116 270.2)
XYZxyz(6.7120, 5.4798, 21.4686)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D81 #81712D
analogous
#2D6781 #2D3D81 #472D81
triadic
#2D3D81 #812D3D #3D812D
tetradic
#2D3D81 #812D67 #81712D #2D8147
square
#2D3D81 #812D67 #81712D #2D8147
split-complementary
#2D3D81 #81472D #67812D
monochromatic
#0D1226 #1D2854 #2D3D81 #3D52AE #6174C8

Accessibility & contrast

On white

10.02
#2D3D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D3D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D81
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D81#FFFFFF#000000##FFFFFF
##2D3D811.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164683
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3d81;
/* rgb */ color: rgb(45, 61, 129);
/* oklch */ color: oklch(38.6% 0.116 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f72a6',
    500: '#2d3d81',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d81;
$custom-light: #6f72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d81",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 129
  },
  "hsl": {
    "h": 228.571,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38608,
    "c": 0.1159,
    "h": 270.2
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#2D3D81
secondary
#AE9E5C
accent
#BE50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3D81

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

Preview Lab → · Contrast checker → · Palette generator →

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