#2B148F#2B148F

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

Color values

HEX#2B148F
RGBrgb(43, 20, 143)
HSLhsl(251, 75%, 32%)
HSVhsv(251, 86%, 56%)
CMYKcmyk(69.9%, 86%, 0%, 43.9%)
CIE-LABlab(20.03, 46.00, -62.33)
CIE-LCHlch(20.03, 77.47, 306.43°)
OKLaboklab(33.15% 0.0263 -0.18)
OKLCHoklch(33.15% 0.182 278.3)
XYZxyz(6.2027, 2.9965, 26.2328)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B148F #788F14
analogous
#143A8F #2B148F #69148F
triadic
#2B148F #8F2B14 #148F2B
tetradic
#2B148F #8F143A #788F14 #148F69
square
#2B148F #8F143A #788F14 #148F69
split-complementary
#2B148F #8F6914 #3A8F14
monochromatic
#0B0524 #1B0C59 #2B148F #3B1CC5 #5A3AE3

Accessibility & contrast

On white

13.13
#2B148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B148F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B148F#FFFFFF#000000##FFFFFF
##2B148F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.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: #2b148f;
/* rgb */ color: rgb(43, 20, 143);
/* oklch */ color: oklch(33.1% 0.182 278.3);
Tailwind
colors: {
  custom: {
    50: '#7557b1',
    500: '#2b148f',
    950: '#000000',
  },
}
SCSS
$custom: #2b148f;
$custom-light: #7557b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b148f",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 251.22,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.18191,
    "h": 278.3
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#2B148F
secondary
#AAC33C
accent
#F236CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2B148F

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

Preview Lab → · Contrast checker → · Palette generator →

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