#2B18A1#2B18A1

#2B18A1 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.7% C 0.200 H 275.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2B18A1
RGBrgb(43, 24, 161)
HSLhsl(248, 74%, 36%)
HSVhsv(248, 85%, 63%)
CMYKcmyk(73.3%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.79, 49.65, -68.84)
CIE-LCHlch(22.79, 84.88, 305.80°)
OKLaboklab(35.68% 0.0191 -0.199)
OKLCHoklch(35.68% 0.2 275.5)
XYZxyz(7.7538, 3.7393, 34.0244)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B18A1 #8EA118
analogous
#184AA1 #2B18A1 #7018A1
triadic
#2B18A1 #A12B18 #18A12B
tetradic
#2B18A1 #A1184A #8EA118 #18A170
square
#2B18A1 #A1184A #8EA118 #18A170
split-complementary
#2B18A1 #A17018 #4AA118
monochromatic
#0F0836 #1D106C #2B18A1 #3920D6 #634FE5

Accessibility & contrast

On white

12.01
#2B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B18A1
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B18A1#FFFFFF#000000##FFFFFF
##2B18A11.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b18a1;
/* rgb */ color: rgb(43, 24, 161);
/* oklch */ color: oklch(35.7% 0.200 275.5);
Tailwind
colors: {
  custom: {
    50: '#795bbe',
    500: '#2b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b18a1;
$custom-light: #795bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b18a1",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 248.321,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.19987,
    "h": 275.5
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#2B18A1
secondary
#B6C74E
accent
#F137D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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