#2B179F#2B179F

#2B179F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.3% C 0.198 H 275.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2B179F
RGBrgb(43, 23, 159)
HSLhsl(249, 75%, 36%)
HSVhsv(249, 86%, 62%)
CMYKcmyk(73%, 85.5%, 0%, 37.6%)
CIE-LABlab(22.40, 49.48, -68.26)
CIE-LCHlch(22.40, 84.31, 305.94°)
OKLaboklab(35.34% 0.02 -0.1973)
OKLCHoklch(35.34% 0.198 275.8)
XYZxyz(7.5586, 3.6289, 33.0963)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B179F #8B9F17
analogous
#17479F #2B179F #6F179F
triadic
#2B179F #9F2B17 #179F2B
tetradic
#2B179F #9F1747 #8B9F17 #179F6F
square
#2B179F #9F1747 #8B9F17 #179F6F
split-complementary
#2B179F #9F6F17 #479F17
monochromatic
#0E0834 #1D0F6A #2B179F #391FD4 #624BE5

Accessibility & contrast

On white

12.17
#2B179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B179F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B179F#FFFFFF#000000##FFFFFF
##2B179F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b179f;
/* rgb */ color: rgb(43, 23, 159);
/* oklch */ color: oklch(35.3% 0.198 275.8);
Tailwind
colors: {
  custom: {
    50: '#785abd',
    500: '#2b179f',
    950: '#000000',
  },
}
SCSS
$custom: #2b179f;
$custom-light: #785abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b179f",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 248.824,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35341,
    "c": 0.19827,
    "h": 275.8
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#2B179F
secondary
#B5C74B
accent
#F136D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2B179F

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

Preview Lab → · Contrast checker → · Palette generator →

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