#271E9F#271E9F

#271E9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.194 H 273.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#271E9F
RGBrgb(39, 30, 159)
HSLhsl(244, 68%, 37%)
HSVhsv(244, 81%, 62%)
CMYKcmyk(75.5%, 81.1%, 0%, 37.6%)
CIE-LABlab(23.21, 45.99, -66.93)
CIE-LCHlch(23.21, 81.21, 304.49°)
OKLaboklab(35.82% 0.0122 -0.1936)
OKLCHoklch(35.82% 0.194 273.6)
XYZxyz(7.5569, 3.8623, 33.1414)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E9F #969F1E
analogous
#1E569F #271E9F #681E9F
triadic
#271E9F #9F271E #1E9F27
tetradic
#271E9F #9F1E56 #969F1E #1E9F68
square
#271E9F #9F1E56 #969F1E #1E9F68
split-complementary
#271E9F #9F681E #569F1E
monochromatic
#0E0B38 #1A146C #271E9F #3428D2 #6158DF

Accessibility & contrast

On white

11.85
#271E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#271E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E9F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E9F#FFFFFF#000000##FFFFFF
##271E9F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271e9f;
/* rgb */ color: rgb(39, 30, 159);
/* oklch */ color: oklch(35.8% 0.194 273.6);
Tailwind
colors: {
  custom: {
    50: '#765dbd',
    500: '#271e9f',
    950: '#000000',
  },
}
SCSS
$custom: #271e9f;
$custom-light: #765dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271e9f",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 244.186,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.19399,
    "h": 273.6
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#271E9F
secondary
#BCC356
accent
#EB3DDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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