#2C18B4#2C18B4

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

Color values

HEX#2C18B4
RGBrgb(44, 24, 180)
HSLhsl(248, 76%, 40%)
HSVhsv(248, 87%, 71%)
CMYKcmyk(75.6%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.21, 55.24, -76.29)
CIE-LCHlch(25.21, 94.19, 305.91°)
OKLaboklab(38.02% 0.0147 -0.2205)
OKLCHoklch(38.02% 0.221 273.8)
XYZxyz(9.6008, 4.4830, 43.5305)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C18B4 #A0B418
analogous
#1852B4 #2C18B4 #7A18B4
triadic
#2C18B4 #B42C18 #18B42C
tetradic
#2C18B4 #B41852 #A0B418 #18B47A
square
#2C18B4 #B41852 #A0B418 #18B47A
split-complementary
#2C18B4 #B47A18 #52B418
monochromatic
#120A48 #1F117E #2C18B4 #3F27E2 #6F5DE9

Accessibility & contrast

On white

11.07
#2C18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C18B4
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C18B4#FFFFFF#000000##FFFFFF
##2C18B41.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c18b4;
/* rgb */ color: rgb(44, 24, 180);
/* oklch */ color: oklch(38.0% 0.221 273.8);
Tailwind
colors: {
  custom: {
    50: '#7e5dcc',
    500: '#2c18b4',
    950: '#000000',
  },
}
SCSS
$custom: #2c18b4;
$custom-light: #7e5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c18b4",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 247.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.3802,
    "c": 0.22101,
    "h": 273.8
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#2C18B4
secondary
#BFCD5B
accent
#F335DB
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2C18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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