#2D3C8E#2D3C8E

#2D3C8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.136 H 271.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2D3C8E
RGBrgb(45, 60, 142)
HSLhsl(231, 52%, 37%)
HSVhsv(231, 68%, 56%)
CMYKcmyk(68.3%, 57.7%, 0%, 44.3%)
CIE-LABlab(28.75, 22.31, -47.39)
CIE-LCHlch(28.75, 52.38, 295.21°)
OKLaboklab(39.44% 0.0023 -0.1364)
OKLCHoklch(39.44% 0.136 271)
XYZxyz(7.5789, 5.7419, 26.2948)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C8E #8E7F2D
analogous
#2D6D8E #2D3C8E #4F2D8E
triadic
#2D3C8E #8E2D3C #3C8E2D
tetradic
#2D3C8E #8E2D6D #8E7F2D #2D8E4F
square
#2D3C8E #8E2D6D #8E7F2D #2D8E4F
split-complementary
#2D3C8E #8E4F2D #6D8E2D
monochromatic
#101531 #1E2860 #2D3C8E #3C50BC #6777CF

Accessibility & contrast

On white

9.77
#2D3C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D3C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C8E
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C8E#FFFFFF#000000##FFFFFF
##2D3C8E1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3c8e;
/* rgb */ color: rgb(45, 60, 142);
/* oklch */ color: oklch(39.4% 0.136 271.0);
Tailwind
colors: {
  custom: {
    50: '#7271b0',
    500: '#2d3c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c8e;
$custom-light: #7271b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c8e",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 230.722,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39437,
    "c": 0.13638,
    "h": 271
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#2D3C8E
secondary
#B5A861
accent
#C54CDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D3C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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