#271683#271683

#271683 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.167 H 278.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#271683
RGBrgb(39, 22, 131)
HSLhsl(249, 71%, 30%)
HSVhsv(249, 83%, 51%)
CMYKcmyk(70.2%, 83.2%, 0%, 48.6%)
CIE-LABlab(18.56, 41.10, -57.25)
CIE-LCHlch(18.56, 70.48, 305.67°)
OKLaboklab(31.63% 0.0233 -0.1654)
OKLCHoklch(31.63% 0.167 278)
XYZxyz(5.2190, 2.6434, 21.7035)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271683 #728316
analogous
#163B83 #271683 #5E1683
triadic
#271683 #832716 #168327
tetradic
#271683 #83163B #728316 #16835E
square
#271683 #83163B #728316 #16835E
split-complementary
#271683 #835E16 #3B8316
monochromatic
#08041A #170D4F #271683 #371FB7 #5036DD

Accessibility & contrast

On white

13.74
#271683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#271683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271683
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271683#FFFFFF#000000##FFFFFF
##2716831.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #271683;
/* rgb */ color: rgb(39, 22, 131);
/* oklch */ color: oklch(31.6% 0.167 278.0);
Tailwind
colors: {
  custom: {
    50: '#7057a8',
    500: '#271683',
    950: '#000000',
  },
}
SCSS
$custom: #271683;
$custom-light: #7057a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271683",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 249.358,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.16702,
    "h": 278
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#271683
secondary
#A4B73D
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271683

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

Preview Lab → · Contrast checker → · Palette generator →

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