#2B177E#2B177E

#2B177E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.159 H 281.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2B177E
RGBrgb(43, 23, 126)
HSLhsl(252, 69%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(65.9%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.51, 39.45, -54.15)
CIE-LCHlch(18.51, 66.99, 306.07°)
OKLaboklab(31.51% 0.0305 -0.1563)
OKLCHoklch(31.51% 0.159 281)
XYZxyz(5.0674, 2.6324, 19.9757)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B177E #6A7E17
analogous
#17377E #2B177E #5F177E
triadic
#2B177E #7E2B17 #177E2B
tetradic
#2B177E #7E1737 #6A7E17 #177E5F
square
#2B177E #7E1737 #6A7E17 #177E5F
split-complementary
#2B177E #7E5F17 #377E17
monochromatic
#09051A #190E4A #2B177E #3D20B2 #5535DA

Accessibility & contrast

On white

13.76
#2B177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B177E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B177E#FFFFFF#000000##FFFFFF
##2B177E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b177e;
/* rgb */ color: rgb(43, 23, 126);
/* oklch */ color: oklch(31.5% 0.159 281.0);
Tailwind
colors: {
  custom: {
    50: '#7158a4',
    500: '#2b177e',
    950: '#000000',
  },
}
SCSS
$custom: #2b177e;
$custom-light: #7158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b177e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 251.65,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31515,
    "c": 0.15921,
    "h": 281
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#2B177E
secondary
#9CB33E
accent
#EC3CCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B177E

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

Preview Lab → · Contrast checker → · Palette generator →

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