#2C179F#2C179F

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

Color values

HEX#2C179F
RGBrgb(44, 23, 159)
HSLhsl(249, 75%, 36%)
HSVhsv(249, 86%, 62%)
CMYKcmyk(72.3%, 85.5%, 0%, 37.6%)
CIE-LABlab(22.48, 49.55, -68.13)
CIE-LCHlch(22.48, 84.24, 306.03°)
OKLaboklab(35.41% 0.0215 -0.1969)
OKLCHoklch(35.41% 0.198 276.2)
XYZxyz(7.6011, 3.6507, 33.0982)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C179F #8A9F17
analogous
#17469F #2C179F #70179F
triadic
#2C179F #9F2C17 #179F2C
tetradic
#2C179F #9F1746 #8A9F17 #179F70
square
#2C179F #9F1746 #8A9F17 #179F70
split-complementary
#2C179F #9F7017 #469F17
monochromatic
#0E0834 #1D0F6A #2C179F #3B1FD4 #634BE5

Accessibility & contrast

On white

12.14
#2C179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C179F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C179F#FFFFFF#000000##FFFFFF
##2C179F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.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: #2c179f;
/* rgb */ color: rgb(44, 23, 159);
/* oklch */ color: oklch(35.4% 0.198 276.2);
Tailwind
colors: {
  custom: {
    50: '#795abd',
    500: '#2c179f',
    950: '#000000',
  },
}
SCSS
$custom: #2c179f;
$custom-light: #795abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c179f",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 249.265,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35414,
    "c": 0.19803,
    "h": 276.2
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#2C179F
secondary
#B4C74B
accent
#F136D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C179F

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

Preview Lab → · Contrast checker → · Palette generator →

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