#271694#271694

#271694 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.6% C 0.187 H 275.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#271694
RGBrgb(39, 22, 148)
HSLhsl(248, 74%, 33%)
HSVhsv(248, 85%, 58%)
CMYKcmyk(73.6%, 85.1%, 0%, 42%)
CIE-LABlab(20.61, 46.34, -64.49)
CIE-LCHlch(20.61, 79.41, 305.70°)
OKLaboklab(33.64% 0.018 -0.1864)
OKLCHoklch(33.64% 0.187 275.5)
XYZxyz(6.4671, 3.1426, 28.2770)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271694 #839416
analogous
#164494 #271694 #661694
triadic
#271694 #942716 #169427
tetradic
#271694 #941644 #839416 #169466
square
#271694 #941644 #839416 #169466
split-complementary
#271694 #946616 #449416
monochromatic
#0B0629 #190E5F #271694 #351EC9 #5742E3

Accessibility & contrast

On white

12.89
#271694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#271694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271694
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271694#FFFFFF#000000##FFFFFF
##2716941.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003797
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271694;
/* rgb */ color: rgb(39, 22, 148);
/* oklch */ color: oklch(33.6% 0.187 275.5);
Tailwind
colors: {
  custom: {
    50: '#7459b5',
    500: '#271694',
    950: '#000000',
  },
}
SCSS
$custom: #271694;
$custom-light: #7459b5;
$custom-dark: #000000;
JSON
{
  "hex": "#271694",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 148
  },
  "hsl": {
    "h": 248.095,
    "s": 74.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3364,
    "c": 0.18726,
    "h": 275.5
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#271694
secondary
#B2C343
accent
#F137D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271694

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

Preview Lab → · Contrast checker → · Palette generator →

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