#2B188F#2B188F

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

Color values

HEX#2B188F
RGBrgb(43, 24, 143)
HSLhsl(250, 71%, 33%)
HSVhsv(250, 83%, 56%)
CMYKcmyk(69.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(20.63, 44.23, -61.33)
CIE-LCHlch(20.63, 75.61, 305.80°)
OKLaboklab(33.57% 0.0247 -0.1772)
OKLCHoklch(33.57% 0.179 277.9)
XYZxyz(6.2792, 3.1495, 26.2583)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B188F #7C8F18
analogous
#18408F #2B188F #66188F
triadic
#2B188F #8F2B18 #188F2B
tetradic
#2B188F #8F1840 #7C8F18 #188F66
square
#2B188F #8F1840 #7C8F18 #188F66
split-complementary
#2B188F #8F6618 #408F18
monochromatic
#0B0626 #1B0F5B #2B188F #3B21C3 #5B42DF

Accessibility & contrast

On white

12.88
#2B188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B188F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B188F#FFFFFF#000000##FFFFFF
##2B188F1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b188f;
/* rgb */ color: rgb(43, 24, 143);
/* oklch */ color: oklch(33.6% 0.179 277.9);
Tailwind
colors: {
  custom: {
    50: '#7559b1',
    500: '#2b188f',
    950: '#000000',
  },
}
SCSS
$custom: #2b188f;
$custom-light: #7559b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b188f",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 249.58,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33565,
    "c": 0.17888,
    "h": 277.9
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#2B188F
secondary
#ACC043
accent
#EE3AD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B188F

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

Preview Lab → · Contrast checker → · Palette generator →

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