#2B147E#2B147E

#2B147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.162 H 281.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2B147E
RGBrgb(43, 20, 126)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 49%)
CMYKcmyk(65.9%, 84.1%, 0%, 50.6%)
CIE-LABlab(18.01, 40.90, -54.97)
CIE-LCHlch(18.01, 68.52, 306.65°)
OKLaboklab(31.17% 0.0322 -0.1586)
OKLCHoklch(31.17% 0.162 281.5)
XYZxyz(5.0111, 2.5199, 19.9569)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147E #677E14
analogous
#14327E #2B147E #60147E
triadic
#2B147E #7E2B14 #147E2B
tetradic
#2B147E #7E1432 #677E14 #147E60
square
#2B147E #7E1432 #677E14 #147E60
split-complementary
#2B147E #7E6014 #327E14
monochromatic
#09041A #190C49 #2B147E #3D1CB3 #552EDE

Accessibility & contrast

On white

13.96
#2B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B147E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147E#FFFFFF#000000##FFFFFF
##2B147E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b147e;
/* rgb */ color: rgb(43, 20, 126);
/* oklch */ color: oklch(31.2% 0.162 281.5);
Tailwind
colors: {
  custom: {
    50: '#7156a5',
    500: '#2b147e',
    950: '#000000',
  },
}
SCSS
$custom: #2b147e;
$custom-light: #7156a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147e",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 253.019,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3117,
    "c": 0.16185,
    "h": 281.5
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#2B147E
secondary
#99B33A
accent
#EF38C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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