#2B195F#2B195F

#2B195F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 288.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2B195F
RGBrgb(43, 25, 95)
HSLhsl(255, 58%, 24%)
HSVhsv(255, 74%, 37%)
CMYKcmyk(54.7%, 73.7%, 0%, 62.7%)
CIE-LABlab(15.67, 28.38, -38.65)
CIE-LCHlch(15.67, 47.95, 306.29°)
OKLaboklab(28.54% 0.0371 -0.111)
OKLCHoklch(28.54% 0.117 288.5)
XYZxyz(3.4088, 2.0349, 11.0374)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B195F #4D5F19
analogous
#192A5F #2B195F #4E195F
triadic
#2B195F #5F2B19 #195F2B
tetradic
#2B195F #5F192A #4D5F19 #195F4E
square
#2B195F #5F192A #4D5F19 #195F4E
split-complementary
#2B195F #5F4E19 #2A5F19
monochromatic
#0B0618 #150C2F #2B195F #41268F #5732C0

Accessibility & contrast

On white

14.93
#2B195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B195F
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B195F#FFFFFF#000000##FFFFFF
##2B195F1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#182B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b195f;
/* rgb */ color: rgb(43, 25, 95);
/* oklch */ color: oklch(28.5% 0.117 288.5);
Tailwind
colors: {
  custom: {
    50: '#6a578d',
    500: '#2b195f',
    950: '#000000',
  },
}
SCSS
$custom: #2b195f;
$custom-light: #6a578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b195f",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 255.429,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28539,
    "c": 0.117,
    "h": 288.5
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#2B195F
secondary
#7F953F
accent
#E246BA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B195F

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

Preview Lab → · Contrast checker → · Palette generator →

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