#2B198B#2B198B

#2B198B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.173 H 278.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2B198B
RGBrgb(43, 25, 139)
HSLhsl(249, 70%, 32%)
HSVhsv(249, 82%, 55%)
CMYKcmyk(69.1%, 82%, 0%, 45.5%)
CIE-LABlab(20.33, 42.51, -59.33)
CIE-LCHlch(20.33, 72.99, 305.62°)
OKLaboklab(33.22% 0.0254 -0.1714)
OKLCHoklch(33.22% 0.173 278.4)
XYZxyz(6.0026, 3.0724, 24.6978)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B198B #798B19
analogous
#19408B #2B198B #64198B
triadic
#2B198B #8B2B19 #198B2B
tetradic
#2B198B #8B1940 #798B19 #198B64
square
#2B198B #8B1940 #798B19 #198B64
split-complementary
#2B198B #8B6419 #408B19
monochromatic
#0B0623 #1B1057 #2B198B #3B22BF #5A41DD

Accessibility & contrast

On white

13.01
#2B198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B198B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B198B#FFFFFF#000000##FFFFFF
##2B198B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b198b;
/* rgb */ color: rgb(43, 25, 139);
/* oklch */ color: oklch(33.2% 0.173 278.4);
Tailwind
colors: {
  custom: {
    50: '#745aae',
    500: '#2b198b',
    950: '#000000',
  },
}
SCSS
$custom: #2b198b;
$custom-light: #745aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b198b",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 249.474,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.17325,
    "h": 278.4
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#2B198B
secondary
#AABE42
accent
#EC3BD0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B198B

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

Preview Lab → · Contrast checker → · Palette generator →

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