#2718B4#2718B4

#2718B4 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.222 H 272.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2718B4
RGBrgb(39, 24, 180)
HSLhsl(246, 76%, 40%)
HSVhsv(246, 87%, 71%)
CMYKcmyk(78.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(24.89, 54.98, -76.83)
CIE-LCHlch(24.89, 94.48, 305.59°)
OKLaboklab(37.71% 0.0082 -0.2222)
OKLCHoklch(37.71% 0.222 272.1)
XYZxyz(9.3988, 4.3789, 43.5210)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2718B4 #A5B418
analogous
#1857B4 #2718B4 #7518B4
triadic
#2718B4 #B42718 #18B427
tetradic
#2718B4 #B41857 #A5B418 #18B475
square
#2718B4 #B41857 #A5B418 #18B475
split-complementary
#2718B4 #B47518 #57B418
monochromatic
#100A48 #1B117E #2718B4 #3927E2 #6A5DE9

Accessibility & contrast

On white

11.19
#2718B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2718B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2718B4
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2718B4#FFFFFF#000000##FFFFFF
##2718B41.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2718b4;
/* rgb */ color: rgb(39, 24, 180);
/* oklch */ color: oklch(37.7% 0.222 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ccc',
    500: '#2718b4',
    950: '#000000',
  },
}
SCSS
$custom: #2718b4;
$custom-light: #7c5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2718b4",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 245.769,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.22232,
    "h": 272.1
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#2718B4
secondary
#C2CD5B
accent
#F335E1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2718B4

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

Preview Lab → · Contrast checker → · Palette generator →

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