#2E18A1#2E18A1

#2E18A1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.9% C 0.199 H 276.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2E18A1
RGBrgb(46, 24, 161)
HSLhsl(250, 74%, 36%)
HSVhsv(250, 85%, 63%)
CMYKcmyk(71.4%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.02, 49.87, -68.45)
CIE-LCHlch(23.02, 84.69, 306.07°)
OKLaboklab(35.89% 0.0234 -0.1978)
OKLCHoklch(35.89% 0.199 276.7)
XYZxyz(7.8843, 3.8066, 34.0305)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E18A1 #8BA118
analogous
#1847A1 #2E18A1 #7318A1
triadic
#2E18A1 #A12E18 #18A12E
tetradic
#2E18A1 #A11847 #8BA118 #18A173
square
#2E18A1 #A11847 #8BA118 #18A173
split-complementary
#2E18A1 #A17318 #47A118
monochromatic
#100836 #1F106C #2E18A1 #3D20D6 #674FE5

Accessibility & contrast

On white

11.92
#2E18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E18A1
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E18A1#FFFFFF#000000##FFFFFF
##2E18A11.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e18a1;
/* rgb */ color: rgb(46, 24, 161);
/* oklch */ color: oklch(35.9% 0.199 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2e18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e18a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e18a1",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 249.635,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35894,
    "c": 0.19915,
    "h": 276.7
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#2E18A1
secondary
#B3C74E
accent
#F137D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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