#2B124F#2B124F

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

Color values

HEX#2B124F
RGBrgb(43, 18, 79)
HSLhsl(265, 63%, 19%)
HSVhsv(265, 77%, 31%)
CMYKcmyk(45.6%, 77.2%, 0%, 69%)
CIE-LABlab(12.68, 27.50, -32.72)
CIE-LCHlch(12.68, 42.74, 310.05°)
OKLaboklab(25.94% 0.0481 -0.0935)
OKLCHoklch(25.94% 0.105 297.2)
XYZxyz(2.6235, 1.5107, 7.5490)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B124F #364F12
analogous
#12184F #2B124F #4A124F
triadic
#2B124F #4F2B12 #124F2B
tetradic
#2B124F #4F1218 #364F12 #124F4A
square
#2B124F #4F1218 #364F12 #124F4A
split-complementary
#2B124F #4F4A12 #184F12
monochromatic
#0E0619 #10071D #2B124F #461D81 #6129B3

Accessibility & contrast

On white

16.13
#2B124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B124F
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B124F#FFFFFF#000000##FFFFFF
##2B124F1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b124f;
/* rgb */ color: rgb(43, 18, 79);
/* oklch */ color: oklch(25.9% 0.105 297.2);
Tailwind
colors: {
  custom: {
    50: '#685281',
    500: '#2b124f',
    950: '#000000',
  },
}
SCSS
$custom: #2b124f;
$custom-light: #685281;
$custom-dark: #000000;
JSON
{
  "hex": "#2b124f",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 264.59,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25939,
    "c": 0.10514,
    "h": 297.2
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

primary
#2B124F
secondary
#668835
accent
#E642A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B124F

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

Preview Lab → · Contrast checker → · Palette generator →

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