#2B127D#2B127D

#2B127D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.162 H 281.9°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2B127D
RGBrgb(43, 18, 125)
HSLhsl(254, 75%, 28%)
HSVhsv(254, 86%, 49%)
CMYKcmyk(65.6%, 85.6%, 0%, 51%)
CIE-LABlab(17.58, 41.50, -55.04)
CIE-LCHlch(17.58, 68.93, 307.02°)
OKLaboklab(30.84% 0.0336 -0.1588)
OKLCHoklch(30.84% 0.162 281.9)
XYZxyz(4.9131, 2.4265, 19.6075)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B127D #647D12
analogous
#122E7D #2B127D #60127D
triadic
#2B127D #7D2B12 #127D2B
tetradic
#2B127D #7D122E #647D12 #127D60
square
#2B127D #7D122E #647D12 #127D60
split-complementary
#2B127D #7D6012 #2E7D12
monochromatic
#09041B #190A48 #2B127D #3D1AB2 #5429E0

Accessibility & contrast

On white

14.14
#2B127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B127D
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B127D#FFFFFF#000000##FFFFFF
##2B127D1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b127d;
/* rgb */ color: rgb(43, 18, 125);
/* oklch */ color: oklch(30.8% 0.162 281.9);
Tailwind
colors: {
  custom: {
    50: '#7155a4',
    500: '#2b127d',
    950: '#000000',
  },
}
SCSS
$custom: #2b127d;
$custom-light: #7155a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b127d",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 254.019,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30842,
    "c": 0.1623,
    "h": 281.9
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#2B127D
secondary
#96B338
accent
#F136C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B127D

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

Preview Lab → · Contrast checker → · Palette generator →

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