#2B104E#2B104E

#2B104E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.107 H 298.3°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2B104E
RGBrgb(43, 16, 78)
HSLhsl(266, 66%, 18%)
HSVhsv(266, 79%, 31%)
CMYKcmyk(44.9%, 79.5%, 0%, 69.4%)
CIE-LABlab(12.18, 28.32, -32.84)
CIE-LCHlch(12.18, 43.36, 310.78°)
OKLaboklab(25.56% 0.0505 -0.0938)
OKLCHoklch(25.56% 0.107 298.3)
XYZxyz(2.5563, 1.4342, 7.3484)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B104E #334E10
analogous
#10144E #2B104E #4A104E
triadic
#2B104E #4E2B10 #104E2B
tetradic
#2B104E #4E1014 #334E10 #104E4A
square
#2B104E #4E1014 #334E10 #104E4A
split-complementary
#2B104E #4E4A10 #144E10
monochromatic
#0E0519 #0F061B #2B104E #471A81 #6325B4

Accessibility & contrast

On white

16.32
#2B104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B104E
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B104E#FFFFFF#000000##FFFFFF
##2B104E1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#22202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b104e;
/* rgb */ color: rgb(43, 16, 78);
/* oklch */ color: oklch(25.6% 0.107 298.3);
Tailwind
colors: {
  custom: {
    50: '#685180',
    500: '#2b104e',
    950: '#000000',
  },
}
SCSS
$custom: #2b104e;
$custom-light: #685180;
$custom-dark: #000000;
JSON
{
  "hex": "#2b104e",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 266.129,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2556,
    "c": 0.10658,
    "h": 298.3
  },
  "luminance": 0.01434
}

Semantic roles & 50–950 ramp

primary
#2B104E
secondary
#628832
accent
#E93F9F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B104E

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

Preview Lab → · Contrast checker → · Palette generator →

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