#271994#271994

#271994 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.185 H 275.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#271994
RGBrgb(39, 25, 148)
HSLhsl(247, 71%, 34%)
HSVhsv(247, 83%, 58%)
CMYKcmyk(73.6%, 83.1%, 0%, 42%)
CIE-LABlab(21.07, 44.97, -63.71)
CIE-LCHlch(21.07, 77.99, 305.21°)
OKLaboklab(33.96% 0.0169 -0.1842)
OKLCHoklch(33.96% 0.185 275.3)
XYZxyz(6.5279, 3.2641, 28.2972)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271994 #869419
analogous
#194994 #271994 #651994
triadic
#271994 #942719 #199427
tetradic
#271994 #941949 #869419 #199465
square
#271994 #941949 #869419 #199465
split-complementary
#271994 #946519 #499419
monochromatic
#0B072B #191060 #271994 #3522C8 #5947E0

Accessibility & contrast

On white

12.70
#271994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271994
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271994#FFFFFF#000000##FFFFFF
##2719941.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271994;
/* rgb */ color: rgb(39, 25, 148);
/* oklch */ color: oklch(34.0% 0.185 275.3);
Tailwind
colors: {
  custom: {
    50: '#745ab5',
    500: '#271994',
    950: '#000000',
  },
}
SCSS
$custom: #271994;
$custom-light: #745ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#271994",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 246.829,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.18498,
    "h": 275.3
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#271994
secondary
#B4C147
accent
#EE3AD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271994

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

Preview Lab → · Contrast checker → · Palette generator →

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