#2E18A0#2E18A0

#2E18A0 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.198 H 276.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2E18A0
RGBrgb(46, 24, 160)
HSLhsl(250, 74%, 36%)
HSVhsv(250, 85%, 63%)
CMYKcmyk(71.2%, 85%, 0%, 37.3%)
CIE-LABlab(22.90, 49.57, -68.04)
CIE-LCHlch(22.90, 84.18, 306.08°)
OKLaboklab(35.78% 0.0237 -0.1966)
OKLCHoklch(35.78% 0.198 276.9)
XYZxyz(7.7964, 3.7715, 33.5680)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E18A0 #8AA018
analogous
#1846A0 #2E18A0 #7218A0
triadic
#2E18A0 #A02E18 #18A02E
tetradic
#2E18A0 #A01846 #8AA018 #18A072
square
#2E18A0 #A01846 #8AA018 #18A072
split-complementary
#2E18A0 #A07218 #46A018
monochromatic
#0F0836 #1F106B #2E18A0 #3D20D5 #664EE4

Accessibility & contrast

On white

11.97
#2E18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E18A0
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E18A0#FFFFFF#000000##FFFFFF
##2E18A01.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e18a0;
/* rgb */ color: rgb(46, 24, 160);
/* oklch */ color: oklch(35.8% 0.198 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2e18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e18a0;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e18a0",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 249.706,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35776,
    "c": 0.198,
    "h": 276.9
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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