#2D3C8B#2D3C8B

#2D3C8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.132 H 270.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2D3C8B
RGBrgb(45, 60, 139)
HSLhsl(230, 51%, 36%)
HSVhsv(230, 68%, 55%)
CMYKcmyk(67.6%, 56.8%, 0%, 45.5%)
CIE-LABlab(28.52, 21.19, -45.91)
CIE-LCHlch(28.52, 50.57, 294.77°)
OKLaboklab(39.19% 0.0022 -0.132)
OKLCHoklch(39.19% 0.132 270.9)
XYZxyz(7.3567, 5.6530, 25.1245)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C8B #8B7C2D
analogous
#2D6B8B #2D3C8B #4D2D8B
triadic
#2D3C8B #8B2D3C #3C8B2D
tetradic
#2D3C8B #8B2D6B #8B7C2D #2D8B4D
square
#2D3C8B #8B2D6B #8B7C2D #2D8B4D
split-complementary
#2D3C8B #8B4D2D #6B8B2D
monochromatic
#0F142F #1E285D #2D3C8B #3C50B9 #6576CD

Accessibility & contrast

On white

9.86
#2D3C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3C8B
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C8B#FFFFFF#000000##FFFFFF
##2D3C8B1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3c8b;
/* rgb */ color: rgb(45, 60, 139);
/* oklch */ color: oklch(39.2% 0.132 270.9);
Tailwind
colors: {
  custom: {
    50: '#7171ad',
    500: '#2d3c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c8b;
$custom-light: #7171ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c8b",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 230.426,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3919,
    "c": 0.13204,
    "h": 270.9
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#2D3C8B
secondary
#B4A660
accent
#C44DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D3C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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