#2E18B4#2E18B4

#2E18B4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.1% C 0.220 H 274.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2E18B4
RGBrgb(46, 24, 180)
HSLhsl(248, 76%, 40%)
HSVhsv(248, 87%, 71%)
CMYKcmyk(74.4%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.35, 55.35, -76.05)
CIE-LCHlch(25.35, 94.06, 306.05°)
OKLaboklab(38.15% 0.0174 -0.2198)
OKLCHoklch(38.15% 0.22 274.5)
XYZxyz(9.6888, 4.5284, 43.5346)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E18B4 #9EB418
analogous
#1850B4 #2E18B4 #7C18B4
triadic
#2E18B4 #B42E18 #18B42E
tetradic
#2E18B4 #B41850 #9EB418 #18B47C
square
#2E18B4 #B41850 #9EB418 #18B47C
split-complementary
#2E18B4 #B47C18 #50B418
monochromatic
#120A48 #20117E #2E18B4 #4127E2 #715DE9

Accessibility & contrast

On white

11.02
#2E18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E18B4
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E18B4#FFFFFF#000000##FFFFFF
##2E18B41.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e18b4;
/* rgb */ color: rgb(46, 24, 180);
/* oklch */ color: oklch(38.1% 0.220 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e5dcc',
    500: '#2e18b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e18b4;
$custom-light: #7e5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e18b4",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 248.462,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.22049,
    "h": 274.5
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2E18B4
secondary
#BDCD5B
accent
#F335D8
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2E18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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