#271F99#271F99

#271F99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.186 H 274.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#271F99
RGBrgb(39, 31, 153)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(74.5%, 79.7%, 0%, 40%)
CIE-LABlab(22.69, 43.56, -64.12)
CIE-LCHlch(22.69, 77.51, 304.19°)
OKLaboklab(35.26% 0.0133 -0.1855)
OKLCHoklch(35.26% 0.186 274.1)
XYZxyz(7.0745, 3.7105, 30.4742)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F99 #91991F
analogous
#1F5499 #271F99 #641F99
triadic
#271F99 #99271F #1F9927
tetradic
#271F99 #991F54 #91991F #1F9964
square
#271F99 #991F54 #91991F #1F9964
split-complementary
#271F99 #99641F #54991F
monochromatic
#0D0A33 #1A1566 #271F99 #3429CC #5F56DD

Accessibility & contrast

On white

12.05
#271F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#271F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F99
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F99#FFFFFF#000000##FFFFFF
##271F991.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271f99;
/* rgb */ color: rgb(39, 31, 153);
/* oklch */ color: oklch(35.3% 0.186 274.1);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#271f99',
    950: '#000000',
  },
}
SCSS
$custom: #271f99;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271f99",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 243.934,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.18593,
    "h": 274.1
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#271F99
secondary
#B9C054
accent
#E93FDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271F99

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

Preview Lab → · Contrast checker → · Palette generator →

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