#2B124E#2B124E

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

Color values

HEX#2B124E
RGBrgb(43, 18, 78)
HSLhsl(265, 63%, 19%)
HSVhsv(265, 77%, 31%)
CMYKcmyk(44.9%, 76.9%, 0%, 69.4%)
CIE-LABlab(12.58, 27.20, -32.18)
CIE-LCHlch(12.58, 42.14, 310.21°)
OKLaboklab(25.85% 0.0483 -0.0919)
OKLCHoklch(25.85% 0.104 297.7)
XYZxyz(2.5874, 1.4962, 7.3587)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124E #354E12
analogous
#12174E #2B124E #49124E
triadic
#2B124E #4E2B12 #124E2B
tetradic
#2B124E #4E1217 #354E12 #124E49
square
#2B124E #4E1217 #354E12 #124E49
split-complementary
#2B124E #4E4912 #174E12
monochromatic
#0E0619 #10071C #2B124E #461D80 #6229B1

Accessibility & contrast

On white

16.16
#2B124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B124E
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124E#FFFFFF#000000##FFFFFF
##2B124E1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#22212E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b124e;
/* rgb */ color: rgb(43, 18, 78);
/* oklch */ color: oklch(25.8% 0.104 297.7);
Tailwind
colors: {
  custom: {
    50: '#685280',
    500: '#2b124e',
    950: '#000000',
  },
}
SCSS
$custom: #2b124e;
$custom-light: #685280;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124e",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 265,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25845,
    "c": 0.10383,
    "h": 297.7
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#2B124E
secondary
#658735
accent
#E642A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124E

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

Preview Lab → · Contrast checker → · Palette generator →

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