#2B114F#2B114F

#2B114F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 297.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2B114F
RGBrgb(43, 17, 79)
HSLhsl(265, 65%, 19%)
HSVhsv(265, 78%, 31%)
CMYKcmyk(45.6%, 78.5%, 0%, 69%)
CIE-LABlab(12.47, 28.07, -33.05)
CIE-LCHlch(12.47, 43.36, 310.34°)
OKLaboklab(25.8% 0.0492 -0.0945)
OKLCHoklch(25.8% 0.107 297.5)
XYZxyz(2.6076, 1.4790, 7.5437)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114F #354F11
analogous
#11164F #2B114F #4A114F
triadic
#2B114F #4F2B11 #114F2B
tetradic
#2B114F #4F1116 #354F11 #114F4A
square
#2B114F #4F1116 #354F11 #114F4A
split-complementary
#2B114F #4F4A11 #164F11
monochromatic
#0E0519 #10061D #2B114F #461C81 #6227B4

Accessibility & contrast

On white

16.21
#2B114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B114F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B114F
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114F#FFFFFF#000000##FFFFFF
##2B114F1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#22212E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114f;
/* rgb */ color: rgb(43, 17, 79);
/* oklch */ color: oklch(25.8% 0.107 297.5);
Tailwind
colors: {
  custom: {
    50: '#685181',
    500: '#2b114f',
    950: '#000000',
  },
}
SCSS
$custom: #2b114f;
$custom-light: #685181;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114f",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 265.161,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25795,
    "c": 0.10651,
    "h": 297.5
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#2B114F
secondary
#658833
accent
#E840A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114F

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

Preview Lab → · Contrast checker → · Palette generator →

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