#2B18A0#2B18A0

#2B18A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.199 H 275.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2B18A0
RGBrgb(43, 24, 160)
HSLhsl(248, 74%, 36%)
HSVhsv(248, 85%, 63%)
CMYKcmyk(73.1%, 85%, 0%, 37.3%)
CIE-LABlab(22.67, 49.36, -68.43)
CIE-LCHlch(22.67, 84.37, 305.80°)
OKLaboklab(35.56% 0.0194 -0.1978)
OKLCHoklch(35.56% 0.199 275.6)
XYZxyz(7.6660, 3.7042, 33.5619)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B18A0 #8DA018
analogous
#1849A0 #2B18A0 #6F18A0
triadic
#2B18A0 #A02B18 #18A02B
tetradic
#2B18A0 #A01849 #8DA018 #18A06F
square
#2B18A0 #A01849 #8DA018 #18A06F
split-complementary
#2B18A0 #A06F18 #49A018
monochromatic
#0E0836 #1D106B #2B18A0 #3920D5 #634EE4

Accessibility & contrast

On white

12.06
#2B18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B18A0
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B18A0#FFFFFF#000000##FFFFFF
##2B18A01.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b18a0;
/* rgb */ color: rgb(43, 24, 160);
/* oklch */ color: oklch(35.6% 0.199 275.6);
Tailwind
colors: {
  custom: {
    50: '#795bbe',
    500: '#2b18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2b18a0;
$custom-light: #795bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b18a0",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 248.382,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35557,
    "c": 0.19873,
    "h": 275.6
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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