#2B198C#2B198C

#2B198C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.174 H 278.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2B198C
RGBrgb(43, 25, 140)
HSLhsl(249, 70%, 32%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(69.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.45, 42.82, -59.77)
CIE-LCHlch(20.45, 73.52, 305.62°)
OKLaboklab(33.33% 0.0251 -0.1726)
OKLCHoklch(33.33% 0.174 278.3)
XYZxyz(6.0760, 3.1018, 25.0844)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B198C #7A8C19
analogous
#19418C #2B198C #64198C
triadic
#2B198C #8C2B19 #198C2B
tetradic
#2B198C #8C1941 #7A8C19 #198C64
square
#2B198C #8C1941 #7A8C19 #198C64
split-complementary
#2B198C #8C6419 #418C19
monochromatic
#0B0624 #1B1058 #2B198C #3B22C0 #5A42DD

Accessibility & contrast

On white

12.96
#2B198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B198C
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B198C#FFFFFF#000000##FFFFFF
##2B198C1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b198c;
/* rgb */ color: rgb(43, 25, 140);
/* oklch */ color: oklch(33.3% 0.174 278.3);
Tailwind
colors: {
  custom: {
    50: '#745aaf',
    500: '#2b198c',
    950: '#000000',
  },
}
SCSS
$custom: #2b198c;
$custom-light: #745aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b198c",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 249.391,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.17446,
    "h": 278.3
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#2B198C
secondary
#ABBE43
accent
#ED3BD1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B198C

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

Preview Lab → · Contrast checker → · Palette generator →

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