#2B195B#2B195B

#2B195B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.112 H 289.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2B195B
RGBrgb(43, 25, 91)
HSLhsl(256, 57%, 23%)
HSVhsv(256, 73%, 36%)
CMYKcmyk(52.7%, 72.5%, 0%, 64.3%)
CIE-LABlab(15.30, 27.08, -36.59)
CIE-LCHlch(15.30, 45.52, 306.51°)
OKLaboklab(28.16% 0.0378 -0.1049)
OKLCHoklch(28.16% 0.112 289.8)
XYZxyz(3.2317, 1.9641, 10.1043)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B195B #495B19
analogous
#19285B #2B195B #4C195B
triadic
#2B195B #5B2B19 #195B2B
tetradic
#2B195B #5B1928 #495B19 #195B4C
square
#2B195B #5B1928 #495B19 #195B4C
split-complementary
#2B195B #5B4C19 #285B19
monochromatic
#0B0718 #140C2B #2B195B #42268B #5833BB

Accessibility & contrast

On white

15.08
#2B195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B195B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B195B
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B195B#FFFFFF#000000##FFFFFF
##2B195B1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#1B2937
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b195b;
/* rgb */ color: rgb(43, 25, 91);
/* oklch */ color: oklch(28.2% 0.112 289.8);
Tailwind
colors: {
  custom: {
    50: '#6a578a',
    500: '#2b195b',
    950: '#000000',
  },
}
SCSS
$custom: #2b195b;
$custom-light: #6a578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b195b",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 256.364,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28157,
    "c": 0.11151,
    "h": 289.8
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#2B195B
secondary
#7B913F
accent
#E048B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B195B

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

Preview Lab → · Contrast checker → · Palette generator →

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