#2B117E#2B117E

#2B117E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.164 H 281.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2B117E
RGBrgb(43, 17, 126)
HSLhsl(254, 76%, 28%)
HSVhsv(254, 87%, 49%)
CMYKcmyk(65.9%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.56, 42.23, -55.72)
CIE-LCHlch(17.56, 69.92, 307.16°)
OKLaboklab(30.86% 0.0337 -0.1608)
OKLCHoklch(30.86% 0.164 281.8)
XYZxyz(4.9614, 2.4205, 19.9404)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B117E #647E11
analogous
#112D7E #2B117E #61117E
triadic
#2B117E #7E2B11 #117E2B
tetradic
#2B117E #7E112D #647E11 #117E61
square
#2B117E #7E112D #647E11 #117E61
split-complementary
#2B117E #7E6111 #2D7E11
monochromatic
#09041B #190A48 #2B117E #3D18B4 #5427E2

Accessibility & contrast

On white

14.15
#2B117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B117E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B117E#FFFFFF#000000##FFFFFF
##2B117E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b117e;
/* rgb */ color: rgb(43, 17, 126);
/* oklch */ color: oklch(30.9% 0.164 281.8);
Tailwind
colors: {
  custom: {
    50: '#7155a5',
    500: '#2b117e',
    950: '#000000',
  },
}
SCSS
$custom: #2b117e;
$custom-light: #7155a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b117e",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 254.312,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30858,
    "c": 0.16425,
    "h": 281.8
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#2B117E
secondary
#96B437
accent
#F335C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B117E

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

Preview Lab → · Contrast checker → · Palette generator →

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