#2D3B8E#2D3B8E

#2D3B8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.138 H 271.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2D3B8E
RGBrgb(45, 59, 142)
HSLhsl(231, 52%, 37%)
HSVhsv(231, 68%, 56%)
CMYKcmyk(68.3%, 58.5%, 0%, 44.3%)
CIE-LABlab(28.48, 22.99, -47.83)
CIE-LCHlch(28.48, 53.07, 295.67°)
OKLaboklab(39.23% 0.0032 -0.1377)
OKLCHoklch(39.23% 0.138 271.3)
XYZxyz(7.5270, 5.6381, 26.2775)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3B8E #8E802D
analogous
#2D6C8E #2D3B8E #502D8E
triadic
#2D3B8E #8E2D3B #3B8E2D
tetradic
#2D3B8E #8E2D6C #8E802D #2D8E50
square
#2D3B8E #8E2D6C #8E802D #2D8E50
split-complementary
#2D3B8E #8E502D #6C8E2D
monochromatic
#101431 #1E2860 #2D3B8E #3C4EBC #6776CF

Accessibility & contrast

On white

9.87
#2D3B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D3B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3B8E
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3B8E#FFFFFF#000000##FFFFFF
##2D3B8E1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3b8e;
/* rgb */ color: rgb(45, 59, 142);
/* oklch */ color: oklch(39.2% 0.138 271.3);
Tailwind
colors: {
  custom: {
    50: '#7270b0',
    500: '#2d3b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3b8e;
$custom-light: #7270b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3b8e",
  "rgb": {
    "r": 45,
    "g": 59,
    "b": 142
  },
  "hsl": {
    "h": 231.34,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39234,
    "c": 0.13771,
    "h": 271.3
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#2D3B8E
secondary
#B5A961
accent
#C74CDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D3B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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