#2B147F#2B147F

#2B147F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.163 H 281.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2B147F
RGBrgb(43, 20, 127)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 50%)
CMYKcmyk(66.1%, 84.3%, 0%, 50.2%)
CIE-LABlab(18.12, 41.20, -55.42)
CIE-LCHlch(18.12, 69.06, 306.63°)
OKLaboklab(31.28% 0.0318 -0.1599)
OKLCHoklch(31.28% 0.163 281.3)
XYZxyz(5.0760, 2.5458, 20.2985)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147F #687F14
analogous
#14337F #2B147F #61147F
triadic
#2B147F #7F2B14 #147F2B
tetradic
#2B147F #7F1433 #687F14 #147F61
square
#2B147F #7F1433 #687F14 #147F61
split-complementary
#2B147F #7F6114 #337F14
monochromatic
#09041A #190C4A #2B147F #3D1CB4 #552FDE

Accessibility & contrast

On white

13.91
#2B147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B147F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147F#FFFFFF#000000##FFFFFF
##2B147F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b147f;
/* rgb */ color: rgb(43, 20, 127);
/* oklch */ color: oklch(31.3% 0.163 281.3);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2b147f',
    950: '#000000',
  },
}
SCSS
$custom: #2b147f;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147f",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 252.897,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31284,
    "c": 0.16305,
    "h": 281.3
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#2B147F
secondary
#9AB43B
accent
#EF38C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B147F

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

Preview Lab → · Contrast checker → · Palette generator →

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