#2B104C#2B104C

#2B104C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.104 H 299.4°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2B104C
RGBrgb(43, 16, 76)
HSLhsl(267, 65%, 18%)
HSVhsv(267, 79%, 30%)
CMYKcmyk(43.4%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.00, 27.74, -31.76)
CIE-LCHlch(12.00, 42.17, 311.13°)
OKLaboklab(25.37% 0.051 -0.0907)
OKLCHoklch(25.37% 0.104 299.4)
XYZxyz(2.4857, 1.4059, 6.9765)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B104C #314C10
analogous
#10134C #2B104C #49104C
triadic
#2B104C #4C2B10 #104C2B
tetradic
#2B104C #4C1013 #314C10 #104C49
square
#2B104C #4C1013 #314C10 #104C49
split-complementary
#2B104C #4C4910 #134C10
monochromatic
#0E0519 #0E0519 #2B104C #481B7F #6425B1

Accessibility & contrast

On white

16.39
#2B104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B104C
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B104C#FFFFFF#000000##FFFFFF
##2B104C1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#231F2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b104c;
/* rgb */ color: rgb(43, 16, 76);
/* oklch */ color: oklch(25.4% 0.104 299.4);
Tailwind
colors: {
  custom: {
    50: '#68517f',
    500: '#2b104c',
    950: '#000000',
  },
}
SCSS
$custom: #2b104c;
$custom-light: #68517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b104c",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 267,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2537,
    "c": 0.10403,
    "h": 299.4
  },
  "luminance": 0.01406
}

Semantic roles & 50–950 ramp

primary
#2B104C
secondary
#608632
accent
#E8409C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B104C

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

Preview Lab → · Contrast checker → · Palette generator →

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