#2718AB#2718AB

#2718AB is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.6% C 0.212 H 272.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2718AB
RGBrgb(39, 24, 171)
HSLhsl(246, 75%, 38%)
HSVhsv(246, 86%, 67%)
CMYKcmyk(77.2%, 86%, 0%, 32.9%)
CIE-LABlab(23.75, 52.36, -73.32)
CIE-LCHlch(23.75, 90.09, 305.53°)
OKLaboklab(36.62% 0.0107 -0.212)
OKLCHoklch(36.62% 0.212 272.9)
XYZxyz(8.5116, 4.0240, 38.8483)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2718AB #9CAB18
analogous
#1853AB #2718AB #7018AB
triadic
#2718AB #AB2718 #18AB27
tetradic
#2718AB #AB1853 #9CAB18 #18AB70
square
#2718AB #AB1853 #9CAB18 #18AB70
split-complementary
#2718AB #AB7018 #53AB18
monochromatic
#0F0940 #1B1075 #2718AB #3420E0 #6556E7

Accessibility & contrast

On white

11.63
#2718AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2718AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2718AB
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2718AB#FFFFFF#000000##FFFFFF
##2718AB1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAF
Deuteranopia (green-blind)
#0031A9
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2718ab;
/* rgb */ color: rgb(39, 24, 171);
/* oklch */ color: oklch(36.6% 0.212 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a5bc6',
    500: '#2718ab',
    950: '#000000',
  },
}
SCSS
$custom: #2718ab;
$custom-light: #7a5bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2718ab",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 171
  },
  "hsl": {
    "h": 246.122,
    "s": 75.385,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36616,
    "c": 0.21227,
    "h": 272.9
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#2718AB
secondary
#BECA55
accent
#F236DF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2718AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2718AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva