#2C18A1#2C18A1

#2C18A1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.200 H 275.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2C18A1
RGBrgb(44, 24, 161)
HSLhsl(249, 74%, 36%)
HSVhsv(249, 85%, 63%)
CMYKcmyk(72.7%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.87, 49.72, -68.71)
CIE-LCHlch(22.87, 84.81, 305.89°)
OKLaboklab(35.75% 0.0205 -0.1986)
OKLCHoklch(35.75% 0.2 275.9)
XYZxyz(7.7963, 3.7612, 34.0264)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C18A1 #8DA118
analogous
#1849A1 #2C18A1 #7118A1
triadic
#2C18A1 #A12C18 #18A12C
tetradic
#2C18A1 #A11849 #8DA118 #18A171
square
#2C18A1 #A11849 #8DA118 #18A171
split-complementary
#2C18A1 #A17118 #49A118
monochromatic
#0F0836 #1D106C #2C18A1 #3B20D6 #654FE5

Accessibility & contrast

On white

11.98
#2C18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C18A1
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C18A1#FFFFFF#000000##FFFFFF
##2C18A11.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c18a1;
/* rgb */ color: rgb(44, 24, 161);
/* oklch */ color: oklch(35.7% 0.200 275.9);
Tailwind
colors: {
  custom: {
    50: '#795bbe',
    500: '#2c18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2c18a1;
$custom-light: #795bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2c18a1",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 248.759,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.19962,
    "h": 275.9
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#2C18A1
secondary
#B5C74E
accent
#F137D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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