#2D379E#2D379E

#2D379E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.165 H 272.1°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2D379E
RGBrgb(45, 55, 158)
HSLhsl(235, 56%, 40%)
HSVhsv(235, 72%, 62%)
CMYKcmyk(71.5%, 65.2%, 0%, 38%)
CIE-LABlab(28.79, 31.55, -57.11)
CIE-LCHlch(28.79, 65.25, 298.92°)
OKLaboklab(39.89% 0.0061 -0.165)
OKLCHoklch(39.89% 0.165 272.1)
XYZxyz(8.6179, 5.7580, 32.9984)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D379E #9E942D
analogous
#2D709E #2D379E #5B2D9E
triadic
#2D379E #9E2D37 #379E2D
tetradic
#2D379E #9E2D70 #9E942D #2D9E5B
square
#2D379E #9E2D70 #9E942D #2D9E5B
split-complementary
#2D379E #9E5B2D #709E2D
monochromatic
#12163F #1F266E #2D379E #404CC9 #6F78D6

Accessibility & contrast

On white

9.76
#2D379E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D379E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D379E#FFFFFF#000000##FFFFFF
##2D379E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d379e;
/* rgb */ color: rgb(45, 55, 158);
/* oklch */ color: oklch(39.9% 0.165 272.1);
Tailwind
colors: {
  custom: {
    50: '#766ebc',
    500: '#2d379e',
    950: '#000000',
  },
}
SCSS
$custom: #2d379e;
$custom-light: #766ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d379e",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 158
  },
  "hsl": {
    "h": 234.69,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39885,
    "c": 0.16506,
    "h": 272.1
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#2D379E
secondary
#BDB669
accent
#D249DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D379E

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

Preview Lab → · Contrast checker → · Palette generator →

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