#2B128F#2B128F

#2B128F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.183 H 278.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2B128F
RGBrgb(43, 18, 143)
HSLhsl(252, 78%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(69.9%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.76, 46.81, -62.78)
CIE-LCHlch(19.76, 78.31, 306.71°)
OKLaboklab(32.96% 0.027 -0.1813)
OKLCHoklch(32.96% 0.183 278.5)
XYZxyz(6.1689, 2.9288, 26.2215)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B128F #768F12
analogous
#12388F #2B128F #6A128F
triadic
#2B128F #8F2B12 #128F2B
tetradic
#2B128F #8F1238 #768F12 #128F6A
square
#2B128F #8F1238 #768F12 #128F6A
split-complementary
#2B128F #8F6A12 #388F12
monochromatic
#0A0422 #1B0B59 #2B128F #3B19C5 #5936E6

Accessibility & contrast

On white

13.24
#2B128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B128F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B128F#FFFFFF#000000##FFFFFF
##2B128F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b128f;
/* rgb */ color: rgb(43, 18, 143);
/* oklch */ color: oklch(33.0% 0.183 278.5);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2b128f',
    950: '#000000',
  },
}
SCSS
$custom: #2b128f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b128f",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 252,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.18329,
    "h": 278.5
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#2B128F
secondary
#A8C33A
accent
#F434CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B128F

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

Preview Lab → · Contrast checker → · Palette generator →

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