#2B197B#2B197B

#2B197B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.154 H 281.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2B197B
RGBrgb(43, 25, 123)
HSLhsl(251, 66%, 29%)
HSVhsv(251, 80%, 48%)
CMYKcmyk(65%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.53, 37.46, -52.19)
CIE-LCHlch(18.53, 64.25, 305.67°)
OKLaboklab(31.44% 0.0302 -0.1506)
OKLCHoklch(31.44% 0.154 281.3)
XYZxyz(4.9179, 2.6385, 18.9852)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B197B #697B19
analogous
#19387B #2B197B #5C197B
triadic
#2B197B #7B2B19 #197B2B
tetradic
#2B197B #7B1938 #697B19 #197B5C
square
#2B197B #7B1938 #697B19 #197B5C
split-complementary
#2B197B #7B5C19 #387B19
monochromatic
#090519 #190F48 #2B197B #3D23AE #5538D7

Accessibility & contrast

On white

13.75
#2B197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B197B
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B197B#FFFFFF#000000##FFFFFF
##2B197B1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b197b;
/* rgb */ color: rgb(43, 25, 123);
/* oklch */ color: oklch(31.4% 0.154 281.3);
Tailwind
colors: {
  custom: {
    50: '#7059a2',
    500: '#2b197b',
    950: '#000000',
  },
}
SCSS
$custom: #2b197b;
$custom-light: #7059a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b197b",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 251.02,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.15357,
    "h": 281.3
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#2B197B
secondary
#9BAF40
accent
#E93FCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B197B

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

Preview Lab → · Contrast checker → · Palette generator →

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