#2B117F#2B117F

#2B117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.165 H 281.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2B117F
RGBrgb(43, 17, 127)
HSLhsl(254, 76%, 28%)
HSVhsv(254, 87%, 50%)
CMYKcmyk(66.1%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.67, 42.53, -56.16)
CIE-LCHlch(17.67, 70.45, 307.13°)
OKLaboklab(30.98% 0.0333 -0.162)
OKLCHoklch(30.98% 0.165 281.6)
XYZxyz(5.0263, 2.4464, 20.2819)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B117F #657F11
analogous
#112E7F #2B117F #62117F
triadic
#2B117F #7F2B11 #117F2B
tetradic
#2B117F #7F112E #657F11 #117F62
square
#2B117F #7F112E #657F11 #117F62
split-complementary
#2B117F #7F6211 #2E7F11
monochromatic
#09041B #190A49 #2B117F #3D18B5 #5428E2

Accessibility & contrast

On white

14.10
#2B117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B117F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B117F#FFFFFF#000000##FFFFFF
##2B117F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b117f;
/* rgb */ color: rgb(43, 17, 127);
/* oklch */ color: oklch(31.0% 0.165 281.6);
Tailwind
colors: {
  custom: {
    50: '#7255a5',
    500: '#2b117f',
    950: '#000000',
  },
}
SCSS
$custom: #2b117f;
$custom-light: #7255a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b117f",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 254.182,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30975,
    "c": 0.16542,
    "h": 281.6
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#2B117F
secondary
#97B537
accent
#F335C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B117F

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

Preview Lab → · Contrast checker → · Palette generator →

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