#271F90#271F90

#271F90 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.175 H 275.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#271F90
RGBrgb(39, 31, 144)
HSLhsl(244, 65%, 34%)
HSVhsv(244, 78%, 56%)
CMYKcmyk(72.9%, 78.5%, 0%, 43.5%)
CIE-LABlab(21.67, 40.62, -60.25)
CIE-LCHlch(21.67, 72.66, 303.99°)
OKLaboklab(34.24% 0.0154 -0.1742)
OKLCHoklch(34.24% 0.175 275.1)
XYZxyz(6.3591, 3.4243, 26.7060)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F90 #88901F
analogous
#1F5090 #271F90 #601F90
triadic
#271F90 #90271F #1F9027
tetradic
#271F90 #901F50 #88901F #1F9060
square
#271F90 #901F50 #88901F #1F9060
split-complementary
#271F90 #90601F #50901F
monochromatic
#0C092B #19145E #271F90 #352AC2 #5A50D9

Accessibility & contrast

On white

12.46
#271F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#271F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F90
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F90#FFFFFF#000000##FFFFFF
##271F901.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #271f90;
/* rgb */ color: rgb(39, 31, 144);
/* oklch */ color: oklch(34.2% 0.175 275.1);
Tailwind
colors: {
  custom: {
    50: '#735db2',
    500: '#271f90',
    950: '#000000',
  },
}
SCSS
$custom: #271f90;
$custom-light: #735db2;
$custom-dark: #000000;
JSON
{
  "hex": "#271f90",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 244.248,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.1749,
    "h": 275.1
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#271F90
secondary
#B5BC4E
accent
#E840DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271F90

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

Preview Lab → · Contrast checker → · Palette generator →

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