#2D3D9D#2D3D9D

#2D3D9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.156 H 270.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2D3D9D
RGBrgb(45, 61, 157)
HSLhsl(231, 55%, 40%)
HSVhsv(231, 71%, 62%)
CMYKcmyk(71.3%, 61.1%, 0%, 38.4%)
CIE-LABlab(30.23, 27.24, -54.16)
CIE-LCHlch(30.23, 60.62, 296.70°)
OKLaboklab(40.92% 0.0016 -0.1562)
OKLCHoklch(40.92% 0.156 270.6)
XYZxyz(8.8347, 6.3288, 32.6477)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D9D #9D8D2D
analogous
#2D759D #2D3D9D #552D9D
triadic
#2D3D9D #9D2D3D #3D9D2D
tetradic
#2D3D9D #9D2D75 #9D8D2D #2D9D55
square
#2D3D9D #9D2D75 #9D8D2D #2D9D55
split-complementary
#2D3D9D #9D552D #759D2D
monochromatic
#12183E #1F2B6D #2D3D9D #3F53C8 #6F7DD6

Accessibility & contrast

On white

9.27
#2D3D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D3D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D9D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D9D#FFFFFF#000000##FFFFFF
##2D3D9D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d3d9d;
/* rgb */ color: rgb(45, 61, 157);
/* oklch */ color: oklch(40.9% 0.156 270.6);
Tailwind
colors: {
  custom: {
    50: '#7572bb',
    500: '#2d3d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d9d;
$custom-light: #7572bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d9d",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 231.429,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.15626,
    "h": 270.6
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#2D3D9D
secondary
#BDB169
accent
#C949DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D3D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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