#2D18B4#2D18B4

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

Color values

HEX#2D18B4
RGBrgb(45, 24, 180)
HSLhsl(248, 76%, 40%)
HSVhsv(248, 87%, 71%)
CMYKcmyk(75%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.28, 55.29, -76.17)
CIE-LCHlch(25.28, 94.12, 305.98°)
OKLaboklab(38.08% 0.016 -0.2202)
OKLCHoklch(38.08% 0.221 274.2)
XYZxyz(9.6443, 4.5055, 43.5325)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D18B4 #9FB418
analogous
#1851B4 #2D18B4 #7B18B4
triadic
#2D18B4 #B42D18 #18B42D
tetradic
#2D18B4 #B41851 #9FB418 #18B47B
square
#2D18B4 #B41851 #9FB418 #18B47B
split-complementary
#2D18B4 #B47B18 #51B418
monochromatic
#120A48 #1F117E #2D18B4 #4027E2 #705DE9

Accessibility & contrast

On white

11.05
#2D18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D18B4
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D18B4#FFFFFF#000000##FFFFFF
##2D18B41.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.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: #2d18b4;
/* rgb */ color: rgb(45, 24, 180);
/* oklch */ color: oklch(38.1% 0.221 274.2);
Tailwind
colors: {
  custom: {
    50: '#7e5dcc',
    500: '#2d18b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d18b4;
$custom-light: #7e5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d18b4",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 248.077,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38084,
    "c": 0.22074,
    "h": 274.2
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#2D18B4
secondary
#BECD5B
accent
#F335D9
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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