#2B118F#2B118F

#2B118F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.184 H 278.6°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2B118F
RGBrgb(43, 17, 143)
HSLhsl(252, 79%, 31%)
HSVhsv(252, 88%, 56%)
CMYKcmyk(69.9%, 88.1%, 0%, 43.9%)
CIE-LABlab(19.63, 47.20, -63.00)
CIE-LCHlch(19.63, 78.72, 306.84°)
OKLaboklab(32.88% 0.0274 -0.1819)
OKLCHoklch(32.88% 0.184 278.6)
XYZxyz(6.1530, 2.8971, 26.2162)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B118F #758F11
analogous
#11368F #2B118F #6A118F
triadic
#2B118F #8F2B11 #118F2B
tetradic
#2B118F #8F1136 #758F11 #118F6A
square
#2B118F #8F1136 #758F11 #118F6A
split-complementary
#2B118F #8F6A11 #368F11
monochromatic
#0A0422 #1B0A58 #2B118F #3B18C6 #5934E7

Accessibility & contrast

On white

13.29
#2B118F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B118F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B118F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B118F#FFFFFF#000000##FFFFFF
##2B118F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b118f;
/* rgb */ color: rgb(43, 17, 143);
/* oklch */ color: oklch(32.9% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#7556b1',
    500: '#2b118f',
    950: '#000000',
  },
}
SCSS
$custom: #2b118f;
$custom-light: #7556b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b118f",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 143
  },
  "hsl": {
    "h": 252.381,
    "s": 78.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32875,
    "c": 0.18394,
    "h": 278.6
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#2B118F
secondary
#A7C338
accent
#F533CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B118F

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

Preview Lab → · Contrast checker → · Palette generator →

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