#271F89#271F89

#271F89 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.166 H 275.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#271F89
RGBrgb(39, 31, 137)
HSLhsl(245, 63%, 33%)
HSVhsv(245, 77%, 54%)
CMYKcmyk(71.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(20.89, 38.29, -57.16)
CIE-LCHlch(20.89, 68.80, 303.81°)
OKLaboklab(33.46% 0.0171 -0.1652)
OKLCHoklch(33.46% 0.166 275.9)
XYZxyz(5.8406, 3.2169, 23.9752)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F89 #81891F
analogous
#1F4C89 #271F89 #5C1F89
triadic
#271F89 #89271F #1F8927
tetradic
#271F89 #891F4C #81891F #1F895C
square
#271F89 #891F4C #81891F #1F895C
split-complementary
#271F89 #895C1F #4C891F
monochromatic
#0B0825 #191457 #271F89 #352ABB #564CD6

Accessibility & contrast

On white

12.78
#271F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#271F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F89
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F89#FFFFFF#000000##FFFFFF
##271F891.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #271f89;
/* rgb */ color: rgb(39, 31, 137);
/* oklch */ color: oklch(33.5% 0.166 275.9);
Tailwind
colors: {
  custom: {
    50: '#715dad',
    500: '#271f89',
    950: '#000000',
  },
}
SCSS
$custom: #271f89;
$custom-light: #715dad;
$custom-dark: #000000;
JSON
{
  "hex": "#271f89",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 244.528,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33464,
    "c": 0.16613,
    "h": 275.9
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#271F89
secondary
#B1B94B
accent
#E642DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #271F89

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

Preview Lab → · Contrast checker → · Palette generator →

#271F89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva