#2C18A0#2C18A0

#2C18A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.198 H 276.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2C18A0
RGBrgb(44, 24, 160)
HSLhsl(249, 74%, 36%)
HSVhsv(249, 85%, 63%)
CMYKcmyk(72.5%, 85%, 0%, 37.3%)
CIE-LABlab(22.74, 49.43, -68.30)
CIE-LCHlch(22.74, 84.31, 305.89°)
OKLaboklab(35.63% 0.0208 -0.1974)
OKLCHoklch(35.63% 0.198 276)
XYZxyz(7.7084, 3.7261, 33.5639)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C18A0 #8CA018
analogous
#1848A0 #2C18A0 #7018A0
triadic
#2C18A0 #A02C18 #18A02C
tetradic
#2C18A0 #A01848 #8CA018 #18A070
square
#2C18A0 #A01848 #8CA018 #18A070
split-complementary
#2C18A0 #A07018 #48A018
monochromatic
#0F0836 #1D106B #2C18A0 #3B20D5 #644EE4

Accessibility & contrast

On white

12.03
#2C18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C18A0
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C18A0#FFFFFF#000000##FFFFFF
##2C18A01.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c18a0;
/* rgb */ color: rgb(44, 24, 160);
/* oklch */ color: oklch(35.6% 0.198 276.0);
Tailwind
colors: {
  custom: {
    50: '#795bbe',
    500: '#2c18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2c18a0;
$custom-light: #795bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2c18a0",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 248.824,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35629,
    "c": 0.19848,
    "h": 276
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#2C18A0
secondary
#B5C64D
accent
#F137D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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