#2D3C8F#2D3C8F

#2D3C8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.138 H 271.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2D3C8F
RGBrgb(45, 60, 143)
HSLhsl(231, 52%, 37%)
HSVhsv(231, 69%, 56%)
CMYKcmyk(68.5%, 58%, 0%, 43.9%)
CIE-LABlab(28.83, 22.69, -47.88)
CIE-LCHlch(28.83, 52.98, 295.35°)
OKLaboklab(39.52% 0.0023 -0.1378)
OKLCHoklch(39.52% 0.138 271)
XYZxyz(7.6543, 5.7721, 26.6920)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C8F #8F802D
analogous
#2D6D8F #2D3C8F #4F2D8F
triadic
#2D3C8F #8F2D3C #3C8F2D
tetradic
#2D3C8F #8F2D6D #8F802D #2D8F4F
square
#2D3C8F #8F2D6D #8F802D #2D8F4F
split-complementary
#2D3C8F #8F4F2D #6D8F2D
monochromatic
#101532 #1E2860 #2D3C8F #3C50BE #6777CF

Accessibility & contrast

On white

9.75
#2D3C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3C8F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C8F#FFFFFF#000000##FFFFFF
##2D3C8F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d3c8f;
/* rgb */ color: rgb(45, 60, 143);
/* oklch */ color: oklch(39.5% 0.138 271.0);
Tailwind
colors: {
  custom: {
    50: '#7271b0',
    500: '#2d3c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c8f;
$custom-light: #7271b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c8f",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 230.816,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.13782,
    "h": 271
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#2D3C8F
secondary
#B6A962
accent
#C64CDC
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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