#271874#271874

#271874 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.146 H 280.5°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#271874
RGBrgb(39, 24, 116)
HSLhsl(250, 66%, 27%)
HSVhsv(250, 79%, 45%)
CMYKcmyk(66.4%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.20, 35.25, -49.91)
CIE-LCHlch(17.20, 61.10, 305.23°)
OKLaboklab(30.18% 0.0266 -0.144)
OKLCHoklch(30.18% 0.146 280.5)
XYZxyz(4.3147, 2.3452, 16.7449)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271874 #657418
analogous
#183774 #271874 #551874
triadic
#271874 #742718 #187427
tetradic
#271874 #741837 #657418 #187455
square
#271874 #741837 #657418 #187455
split-complementary
#271874 #745518 #377418
monochromatic
#090519 #160E41 #271874 #3822A7 #4C32D5

Accessibility & contrast

On white

14.29
#271874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271874
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271874#FFFFFF#000000##FFFFFF
##2718741.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271874;
/* rgb */ color: rgb(39, 24, 116);
/* oklch */ color: oklch(30.2% 0.146 280.5);
Tailwind
colors: {
  custom: {
    50: '#6d579d',
    500: '#271874',
    950: '#000000',
  },
}
SCSS
$custom: #271874;
$custom-light: #6d579d;
$custom-dark: #000000;
JSON
{
  "hex": "#271874",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 249.783,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3018,
    "c": 0.14646,
    "h": 280.5
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#271874
secondary
#98A93F
accent
#E93FCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271874

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

Preview Lab → · Contrast checker → · Palette generator →

#271874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva