#2D3C81#2D3C81

#2D3C81 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.4% C 0.117 H 270.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2D3C81
RGBrgb(45, 60, 129)
HSLhsl(229, 48%, 34%)
HSVhsv(229, 65%, 51%)
CMYKcmyk(65.1%, 53.5%, 0%, 49.4%)
CIE-LABlab(27.77, 17.44, -40.90)
CIE-LCHlch(27.77, 44.46, 293.09°)
OKLaboklab(38.39% 0.0015 -0.1173)
OKLCHoklch(38.39% 0.117 270.7)
XYZxyz(6.6592, 5.3740, 21.4510)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C81 #81722D
analogous
#2D6681 #2D3C81 #482D81
triadic
#2D3C81 #812D3C #3C812D
tetradic
#2D3C81 #812D66 #81722D #2D8148
square
#2D3C81 #812D66 #81722D #2D8148
split-complementary
#2D3C81 #81482D #66812D
monochromatic
#0D1226 #1D2754 #2D3C81 #3D51AE #6173C8

Accessibility & contrast

On white

10.12
#2D3C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D3C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C81
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C81#FFFFFF#000000##FFFFFF
##2D3C811.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134583
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3c81;
/* rgb */ color: rgb(45, 60, 129);
/* oklch */ color: oklch(38.4% 0.117 270.7);
Tailwind
colors: {
  custom: {
    50: '#6f71a6',
    500: '#2d3c81',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c81;
$custom-light: #6f71a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c81",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 229.286,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38393,
    "c": 0.11728,
    "h": 270.7
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#2D3C81
secondary
#AE9F5C
accent
#C050D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D3C81

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

Preview Lab → · Contrast checker → · Palette generator →

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