#2B197C#2B197C

#2B197C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.155 H 281.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2B197C
RGBrgb(43, 25, 124)
HSLhsl(251, 66%, 29%)
HSVhsv(251, 80%, 49%)
CMYKcmyk(65.3%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.64, 37.78, -52.65)
CIE-LCHlch(18.64, 64.80, 305.66°)
OKLaboklab(31.54% 0.0299 -0.1519)
OKLCHoklch(31.54% 0.155 281.1)
XYZxyz(4.9808, 2.6637, 19.3165)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B197C #6A7C19
analogous
#19397C #2B197C #5D197C
triadic
#2B197C #7C2B19 #197C2B
tetradic
#2B197C #7C1939 #6A7C19 #197C5D
square
#2B197C #7C1939 #6A7C19 #197C5D
split-complementary
#2B197C #7C5D19 #397C19
monochromatic
#090519 #190F49 #2B197C #3D23AF #5538D7

Accessibility & contrast

On white

13.70
#2B197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B197C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B197C#FFFFFF#000000##FFFFFF
##2B197C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b197c;
/* rgb */ color: rgb(43, 25, 124);
/* oklch */ color: oklch(31.5% 0.155 281.1);
Tailwind
colors: {
  custom: {
    50: '#7059a3',
    500: '#2b197c',
    950: '#000000',
  },
}
SCSS
$custom: #2b197c;
$custom-light: #7059a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b197c",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 250.909,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31544,
    "c": 0.15483,
    "h": 281.1
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2B197C
secondary
#9CB040
accent
#E93ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B197C

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

Preview Lab → · Contrast checker → · Palette generator →

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