#271F98#271F98

#271F98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.185 H 274.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#271F98
RGBrgb(39, 31, 152)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(74.3%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.58, 43.23, -63.69)
CIE-LCHlch(22.58, 76.98, 304.17°)
OKLaboklab(35.14% 0.0135 -0.1842)
OKLCHoklch(35.14% 0.185 274.2)
XYZxyz(6.9923, 3.6776, 30.0410)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F98 #90981F
analogous
#1F5398 #271F98 #631F98
triadic
#271F98 #98271F #1F9827
tetradic
#271F98 #981F53 #90981F #1F9863
square
#271F98 #981F53 #90981F #1F9863
split-complementary
#271F98 #98631F #53981F
monochromatic
#0D0A32 #1A1565 #271F98 #3429CB #5E55DC

Accessibility & contrast

On white

12.10
#271F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F98
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F98#FFFFFF#000000##FFFFFF
##271F981.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271f98;
/* rgb */ color: rgb(39, 31, 152);
/* oklch */ color: oklch(35.1% 0.185 274.2);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#271f98',
    950: '#000000',
  },
}
SCSS
$custom: #271f98;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#271f98",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 243.967,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.18473,
    "h": 274.2
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#271F98
secondary
#B9C053
accent
#E93FDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271F98

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

Preview Lab → · Contrast checker → · Palette generator →

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