#2D3D9F#2D3D9F

#2D3D9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.159 H 270.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2D3D9F
RGBrgb(45, 61, 159)
HSLhsl(232, 56%, 40%)
HSVhsv(232, 72%, 62%)
CMYKcmyk(71.7%, 61.6%, 0%, 37.6%)
CIE-LABlab(30.39, 27.98, -55.10)
CIE-LCHlch(30.39, 61.80, 296.92°)
OKLaboklab(41.09% 0.0016 -0.159)
OKLCHoklch(41.09% 0.159 270.6)
XYZxyz(9.0068, 6.3977, 33.5544)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D9F #9F8F2D
analogous
#2D769F #2D3D9F #562D9F
triadic
#2D3D9F #9F2D3D #3D9F2D
tetradic
#2D3D9F #9F2D76 #9F8F2D #2D9F56
square
#2D3D9F #9F2D76 #9F8F2D #2D9F56
split-complementary
#2D3D9F #9F562D #769F2D
monochromatic
#121840 #202B6F #2D3D9F #4053C9 #707ED6

Accessibility & contrast

On white

9.21
#2D3D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D3D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D9F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D9F#FFFFFF#000000##FFFFFF
##2D3D9F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d3d9f;
/* rgb */ color: rgb(45, 61, 159);
/* oklch */ color: oklch(41.1% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#7672bc',
    500: '#2d3d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d9f;
$custom-light: #7672bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d9f",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 231.579,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41091,
    "c": 0.15902,
    "h": 270.6
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#2D3D9F
secondary
#BEB26A
accent
#CA49DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D3D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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