#2B188A#2B188A

#2B188A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.173 H 278.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2B188A
RGBrgb(43, 24, 138)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 83%, 54%)
CMYKcmyk(68.8%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.05, 42.69, -59.17)
CIE-LCHlch(20.05, 72.97, 305.81°)
OKLaboklab(32.99% 0.0262 -0.1709)
OKLCHoklch(32.99% 0.173 278.7)
XYZxyz(5.9089, 3.0013, 24.3078)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B188A #778A18
analogous
#183E8A #2B188A #64188A
triadic
#2B188A #8A2B18 #188A2B
tetradic
#2B188A #8A183E #778A18 #188A64
square
#2B188A #8A183E #778A18 #188A64
split-complementary
#2B188A #8A6418 #3E8A18
monochromatic
#0B0622 #1B0F56 #2B188A #3B21BE #593FDE

Accessibility & contrast

On white

13.12
#2B188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B188A
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B188A#FFFFFF#000000##FFFFFF
##2B188A1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b188a;
/* rgb */ color: rgb(43, 24, 138);
/* oklch */ color: oklch(33.0% 0.173 278.7);
Tailwind
colors: {
  custom: {
    50: '#7359ad',
    500: '#2b188a',
    950: '#000000',
  },
}
SCSS
$custom: #2b188a;
$custom-light: #7359ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b188a",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 250,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32991,
    "c": 0.1729,
    "h": 278.7
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

primary
#2B188A
secondary
#A9BD40
accent
#ED3BCF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B188A

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

Preview Lab → · Contrast checker → · Palette generator →

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