#2B114E#2B114E

#2B114E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.105 H 298.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2B114E
RGBrgb(43, 17, 78)
HSLhsl(266, 64%, 19%)
HSVhsv(266, 78%, 31%)
CMYKcmyk(44.9%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.38, 27.77, -32.51)
CIE-LCHlch(12.38, 42.76, 310.50°)
OKLaboklab(25.7% 0.0494 -0.0929)
OKLCHoklch(25.7% 0.105 298)
XYZxyz(2.5715, 1.4645, 7.3534)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B114E #344E11
analogous
#11154E #2B114E #49114E
triadic
#2B114E #4E2B11 #114E2B
tetradic
#2B114E #4E1115 #344E11 #114E49
square
#2B114E #4E1115 #344E11 #114E49
split-complementary
#2B114E #4E4911 #154E11
monochromatic
#0E0519 #0F061C #2B114E #471C80 #6227B2

Accessibility & contrast

On white

16.24
#2B114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B114E
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B114E#FFFFFF#000000##FFFFFF
##2B114E1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#22202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b114e;
/* rgb */ color: rgb(43, 17, 78);
/* oklch */ color: oklch(25.7% 0.105 298.0);
Tailwind
colors: {
  custom: {
    50: '#685180',
    500: '#2b114e',
    950: '#000000',
  },
}
SCSS
$custom: #2b114e;
$custom-light: #685180;
$custom-dark: #000000;
JSON
{
  "hex": "#2b114e",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 265.574,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.257,
    "c": 0.10522,
    "h": 298
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#2B114E
secondary
#648733
accent
#E741A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B114E

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

Preview Lab → · Contrast checker → · Palette generator →

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