#271F9F#271F9F

#271F9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.193 H 273.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#271F9F
RGBrgb(39, 31, 159)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 81%, 62%)
CMYKcmyk(75.5%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.38, 45.48, -66.64)
CIE-LCHlch(23.38, 80.69, 304.31°)
OKLaboklab(35.94% 0.0118 -0.1928)
OKLCHoklch(35.94% 0.193 273.5)
XYZxyz(7.5826, 3.9137, 33.1500)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F9F #979F1F
analogous
#1F579F #271F9F #671F9F
triadic
#271F9F #9F271F #1F9F27
tetradic
#271F9F #9F1F57 #979F1F #1F9F67
square
#271F9F #9F1F57 #979F1F #1F9F67
split-complementary
#271F9F #9F671F #579F1F
monochromatic
#0E0B39 #1A156C #271F9F #3429D2 #625ADF

Accessibility & contrast

On white

11.78
#271F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#271F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F9F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F9F#FFFFFF#000000##FFFFFF
##271F9F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #271f9f;
/* rgb */ color: rgb(39, 31, 159);
/* oklch */ color: oklch(35.9% 0.193 273.5);
Tailwind
colors: {
  custom: {
    50: '#765ebd',
    500: '#271f9f',
    950: '#000000',
  },
}
SCSS
$custom: #271f9f;
$custom-light: #765ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#271f9f",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 243.75,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.19316,
    "h": 273.5
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#271F9F
secondary
#BCC357
accent
#EA3EDF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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