#2D179F#2D179F

#2D179F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.198 H 276.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2D179F
RGBrgb(45, 23, 159)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 62%)
CMYKcmyk(71.7%, 85.5%, 0%, 37.6%)
CIE-LABlab(22.56, 49.62, -68.00)
CIE-LCHlch(22.56, 84.18, 306.12°)
OKLaboklab(35.49% 0.0229 -0.1965)
OKLCHoklch(35.49% 0.198 276.7)
XYZxyz(7.6446, 3.6732, 33.1003)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D179F #899F17
analogous
#17459F #2D179F #71179F
triadic
#2D179F #9F2D17 #179F2D
tetradic
#2D179F #9F1745 #899F17 #179F71
square
#2D179F #9F1745 #899F17 #179F71
split-complementary
#2D179F #9F7117 #459F17
monochromatic
#0F0834 #1E0F6A #2D179F #3C1FD4 #644BE5

Accessibility & contrast

On white

12.11
#2D179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D179F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D179F#FFFFFF#000000##FFFFFF
##2D179F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d179f;
/* rgb */ color: rgb(45, 23, 159);
/* oklch */ color: oklch(35.5% 0.198 276.7);
Tailwind
colors: {
  custom: {
    50: '#795abd',
    500: '#2d179f',
    950: '#000000',
  },
}
SCSS
$custom: #2d179f;
$custom-light: #795abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d179f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 249.706,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.19779,
    "h": 276.7
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#2D179F
secondary
#B3C74B
accent
#F136D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D179F

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

Preview Lab → · Contrast checker → · Palette generator →

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