#2B138F#2B138F

#2B138F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.183 H 278.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2B138F
RGBrgb(43, 19, 143)
HSLhsl(252, 77%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69.9%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.89, 46.41, -62.56)
CIE-LCHlch(19.89, 77.90, 306.57°)
OKLaboklab(33.06% 0.0267 -0.1806)
OKLCHoklch(33.06% 0.183 278.4)
XYZxyz(6.1855, 2.9620, 26.2270)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B138F #778F13
analogous
#13398F #2B138F #69138F
triadic
#2B138F #8F2B13 #138F2B
tetradic
#2B138F #8F1339 #778F13 #138F69
square
#2B138F #8F1339 #778F13 #138F69
split-complementary
#2B138F #8F6913 #398F13
monochromatic
#0B0523 #1B0C59 #2B138F #3B1AC5 #5938E5

Accessibility & contrast

On white

13.19
#2B138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B138F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B138F#FFFFFF#000000##FFFFFF
##2B138F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b138f;
/* rgb */ color: rgb(43, 19, 143);
/* oklch */ color: oklch(33.1% 0.183 278.4);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2b138f',
    950: '#000000',
  },
}
SCSS
$custom: #2b138f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b138f",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 251.613,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33055,
    "c": 0.18261,
    "h": 278.4
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2B138F
secondary
#A9C33B
accent
#F335CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B138F

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

Preview Lab → · Contrast checker → · Palette generator →

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