#2D378B#2D378B

#2D378B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.139 H 272.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2D378B
RGBrgb(45, 55, 139)
HSLhsl(234, 51%, 36%)
HSVhsv(234, 68%, 55%)
CMYKcmyk(67.6%, 60.4%, 0%, 45.5%)
CIE-LABlab(27.17, 24.58, -48.11)
CIE-LCHlch(27.17, 54.02, 297.06°)
OKLaboklab(38.18% 0.0068 -0.1385)
OKLCHoklch(38.18% 0.139 272.8)
XYZxyz(7.1070, 5.1537, 25.0413)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D378B #8B812D
analogous
#2D668B #2D378B #522D8B
triadic
#2D378B #8B2D37 #378B2D
tetradic
#2D378B #8B2D66 #8B812D #2D8B52
square
#2D378B #8B2D66 #8B812D #2D8B52
split-complementary
#2D378B #8B522D #668B2D
monochromatic
#0F122F #1E255D #2D378B #3C49B9 #6570CD

Accessibility & contrast

On white

10.34
#2D378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D378B
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D378B#FFFFFF#000000##FFFFFF
##2D378B1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d378b;
/* rgb */ color: rgb(45, 55, 139);
/* oklch */ color: oklch(38.2% 0.139 272.8);
Tailwind
colors: {
  custom: {
    50: '#726dae',
    500: '#2d378b',
    950: '#000000',
  },
}
SCSS
$custom: #2d378b;
$custom-light: #726dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d378b",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 233.617,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38182,
    "c": 0.1387,
    "h": 272.8
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#2D378B
secondary
#B4AB60
accent
#CC4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D378B

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

Preview Lab → · Contrast checker → · Palette generator →

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