#2B198E#2B198E

#2B198E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 278.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2B198E
RGBrgb(43, 25, 142)
HSLhsl(249, 70%, 33%)
HSVhsv(249, 82%, 56%)
CMYKcmyk(69.7%, 82.4%, 0%, 44.3%)
CIE-LABlab(20.68, 43.44, -60.63)
CIE-LCHlch(20.68, 74.59, 305.62°)
OKLaboklab(33.56% 0.0245 -0.1751)
OKLCHoklch(33.56% 0.177 278)
XYZxyz(6.2248, 3.1613, 25.8681)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B198E #7C8E19
analogous
#19418E #2B198E #66198E
triadic
#2B198E #8E2B19 #198E2B
tetradic
#2B198E #8E1941 #7C8E19 #198E66
square
#2B198E #8E1941 #7C8E19 #198E66
split-complementary
#2B198E #8E6619 #418E19
monochromatic
#0B0726 #1B105A #2B198E #3B22C2 #5B43DE

Accessibility & contrast

On white

12.86
#2B198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B198E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B198E#FFFFFF#000000##FFFFFF
##2B198E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b198e;
/* rgb */ color: rgb(43, 25, 142);
/* oklch */ color: oklch(33.6% 0.177 278.0);
Tailwind
colors: {
  custom: {
    50: '#745ab0',
    500: '#2b198e',
    950: '#000000',
  },
}
SCSS
$custom: #2b198e;
$custom-light: #745ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b198e",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 249.231,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33563,
    "c": 0.17686,
    "h": 278
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#2B198E
secondary
#ACBF44
accent
#ED3BD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B198E

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

Preview Lab → · Contrast checker → · Palette generator →

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