#2B188E#2B188E

#2B188E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.178 H 278.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2B188E
RGBrgb(43, 24, 142)
HSLhsl(250, 71%, 33%)
HSVhsv(250, 83%, 56%)
CMYKcmyk(69.7%, 83.1%, 0%, 44.3%)
CIE-LABlab(20.52, 43.92, -60.90)
CIE-LCHlch(20.52, 75.09, 305.80°)
OKLaboklab(33.45% 0.025 -0.1759)
OKLCHoklch(33.45% 0.178 278.1)
XYZxyz(6.2038, 3.1193, 25.8611)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B188E #7B8E18
analogous
#18408E #2B188E #66188E
triadic
#2B188E #8E2B18 #188E2B
tetradic
#2B188E #8E1840 #7B8E18 #188E66
square
#2B188E #8E1840 #7B8E18 #188E66
split-complementary
#2B188E #8E6618 #408E18
monochromatic
#0B0625 #1B0F5A #2B188E #3B21C2 #5B41DF

Accessibility & contrast

On white

12.93
#2B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B188E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B188E#FFFFFF#000000##FFFFFF
##2B188E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b188e;
/* rgb */ color: rgb(43, 24, 142);
/* oklch */ color: oklch(33.5% 0.178 278.1);
Tailwind
colors: {
  custom: {
    50: '#7459b0',
    500: '#2b188e',
    950: '#000000',
  },
}
SCSS
$custom: #2b188e;
$custom-light: #7459b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b188e",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 249.661,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3345,
    "c": 0.17768,
    "h": 278.1
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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