#2B188C#2B188C

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

Color values

HEX#2B188C
RGBrgb(43, 24, 140)
HSLhsl(250, 71%, 32%)
HSVhsv(250, 83%, 55%)
CMYKcmyk(69.3%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.28, 43.31, -60.04)
CIE-LCHlch(20.28, 74.03, 305.80°)
OKLaboklab(33.22% 0.0256 -0.1734)
OKLCHoklch(33.22% 0.175 278.4)
XYZxyz(6.0550, 3.0598, 25.0774)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B188C #798C18
analogous
#183F8C #2B188C #65188C
triadic
#2B188C #8C2B18 #188C2B
tetradic
#2B188C #8C183F #798C18 #188C65
square
#2B188C #8C183F #798C18 #188C65
split-complementary
#2B188C #8C6518 #3F8C18
monochromatic
#0B0624 #1B0F58 #2B188C #3B21C0 #5A40DE

Accessibility & contrast

On white

13.03
#2B188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B188C
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B188C#FFFFFF#000000##FFFFFF
##2B188C1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b188c;
/* rgb */ color: rgb(43, 24, 140);
/* oklch */ color: oklch(33.2% 0.175 278.4);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2b188c',
    950: '#000000',
  },
}
SCSS
$custom: #2b188c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b188c",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 249.828,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.1753,
    "h": 278.4
  },
  "luminance": 0.0306
}

Semantic roles & 50–950 ramp

primary
#2B188C
secondary
#AABF41
accent
#ED3AD0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B188C

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

Preview Lab → · Contrast checker → · Palette generator →

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