#271692#271692

#271692 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.185 H 275.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#271692
RGBrgb(39, 22, 146)
HSLhsl(248, 74%, 33%)
HSVhsv(248, 85%, 57%)
CMYKcmyk(73.3%, 84.9%, 0%, 42.7%)
CIE-LABlab(20.36, 45.73, -63.65)
CIE-LCHlch(20.36, 78.38, 305.69°)
OKLaboklab(33.4% 0.0186 -0.184)
OKLCHoklch(33.4% 0.185 275.8)
XYZxyz(6.3102, 3.0799, 27.4505)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271692 #819216
analogous
#164392 #271692 #651692
triadic
#271692 #922716 #169227
tetradic
#271692 #921643 #819216 #169265
square
#271692 #921643 #819216 #169265
split-complementary
#271692 #926516 #439216
monochromatic
#0B0628 #190E5D #271692 #351EC7 #5640E2

Accessibility & contrast

On white

13.00
#271692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#271692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271692
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271692#FFFFFF#000000##FFFFFF
##2716921.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003695
Deuteranopia (green-blind)
#002C90
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #271692;
/* rgb */ color: rgb(39, 22, 146);
/* oklch */ color: oklch(33.4% 0.185 275.8);
Tailwind
colors: {
  custom: {
    50: '#7458b3',
    500: '#271692',
    950: '#000000',
  },
}
SCSS
$custom: #271692;
$custom-light: #7458b3;
$custom-dark: #000000;
JSON
{
  "hex": "#271692",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 146
  },
  "hsl": {
    "h": 248.226,
    "s": 73.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.334,
    "c": 0.18492,
    "h": 275.8
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#271692
secondary
#B1C341
accent
#F037D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271692

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

Preview Lab → · Contrast checker → · Palette generator →

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