#2B127C#2B127C

#2B127C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.161 H 282.2°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2B127C
RGBrgb(43, 18, 124)
HSLhsl(254, 75%, 28%)
HSVhsv(254, 85%, 49%)
CMYKcmyk(65.3%, 85.5%, 0%, 51.4%)
CIE-LABlab(17.47, 41.20, -54.60)
CIE-LCHlch(17.47, 68.40, 307.04°)
OKLaboklab(30.73% 0.0339 -0.1575)
OKLCHoklch(30.73% 0.161 282.2)
XYZxyz(4.8495, 2.4011, 19.2728)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B127C #637C12
analogous
#122E7C #2B127C #60127C
triadic
#2B127C #7C2B12 #127C2B
tetradic
#2B127C #7C122E #637C12 #127C60
square
#2B127C #7C122E #637C12 #127C60
split-complementary
#2B127C #7C6012 #2E7C12
monochromatic
#09041B #180A47 #2B127C #3E1AB1 #5429E0

Accessibility & contrast

On white

14.19
#2B127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B127C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B127C#FFFFFF#000000##FFFFFF
##2B127C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b127c;
/* rgb */ color: rgb(43, 18, 124);
/* oklch */ color: oklch(30.7% 0.161 282.2);
Tailwind
colors: {
  custom: {
    50: '#7155a3',
    500: '#2b127c',
    950: '#000000',
  },
}
SCSS
$custom: #2b127c;
$custom-light: #7155a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b127c",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 254.151,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30727,
    "c": 0.16111,
    "h": 282.2
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#2B127C
secondary
#95B238
accent
#F137C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B127C

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

Preview Lab → · Contrast checker → · Palette generator →

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