#271F93#271F93

#271F93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.179 H 274.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#271F93
RGBrgb(39, 31, 147)
HSLhsl(244, 65%, 35%)
HSVhsv(244, 79%, 58%)
CMYKcmyk(73.5%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.01, 41.60, -61.55)
CIE-LCHlch(22.01, 74.29, 304.06°)
OKLaboklab(34.58% 0.0147 -0.178)
OKLCHoklch(34.58% 0.179 274.7)
XYZxyz(6.5914, 3.5172, 27.9296)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F93 #8B931F
analogous
#1F5193 #271F93 #611F93
triadic
#271F93 #93271F #1F9327
tetradic
#271F93 #931F51 #8B931F #1F9361
square
#271F93 #931F51 #8B931F #1F9361
split-complementary
#271F93 #93611F #51931F
monochromatic
#0C0A2E #1A1460 #271F93 #342AC6 #5B52DA

Accessibility & contrast

On white

12.33
#271F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#271F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F93
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F93#FFFFFF#000000##FFFFFF
##271F931.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271f93;
/* rgb */ color: rgb(39, 31, 147);
/* oklch */ color: oklch(34.6% 0.179 274.7);
Tailwind
colors: {
  custom: {
    50: '#735db4',
    500: '#271f93',
    950: '#000000',
  },
}
SCSS
$custom: #271f93;
$custom-light: #735db4;
$custom-dark: #000000;
JSON
{
  "hex": "#271f93",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 244.138,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34578,
    "c": 0.17861,
    "h": 274.7
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#271F93
secondary
#B6BE50
accent
#E840DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271F93

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

Preview Lab → · Contrast checker → · Palette generator →

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