#2D3581#2D3581

#2D3581 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.127 H 273.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2D3581
RGBrgb(45, 53, 129)
HSLhsl(234, 48%, 34%)
HSVhsv(234, 65%, 51%)
CMYKcmyk(65.1%, 58.9%, 0%, 49.4%)
CIE-LABlab(25.83, 22.23, -44.05)
CIE-LCHlch(25.83, 49.34, 296.78°)
OKLaboklab(36.93% 0.0086 -0.1266)
OKLCHoklch(36.93% 0.127 273.9)
XYZxyz(6.3164, 4.6885, 21.3367)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3581 #81792D
analogous
#2D5F81 #2D3581 #4F2D81
triadic
#2D3581 #812D35 #35812D
tetradic
#2D3581 #812D5F #81792D #2D814F
square
#2D3581 #812D5F #81792D #2D814F
split-complementary
#2D3581 #814F2D #5F812D
monochromatic
#0D1026 #1D2254 #2D3581 #3D48AE #616AC8

Accessibility & contrast

On white

10.84
#2D3581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D3581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3581
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3581#FFFFFF#000000##FFFFFF
##2D35811.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d3581;
/* rgb */ color: rgb(45, 53, 129);
/* oklch */ color: oklch(36.9% 0.127 273.9);
Tailwind
colors: {
  custom: {
    50: '#706ca6',
    500: '#2d3581',
    950: '#000000',
  },
}
SCSS
$custom: #2d3581;
$custom-light: #706ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3581",
  "rgb": {
    "r": 45,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 234.286,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36932,
    "c": 0.12691,
    "h": 273.9
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#2D3581
secondary
#AEA65C
accent
#CB50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D3581

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

Preview Lab → · Contrast checker → · Palette generator →

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