#271F67#271F67

#271F67 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.121 H 281.3°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#271F67
RGBrgb(39, 31, 103)
HSLhsl(247, 54%, 26%)
HSVhsv(247, 70%, 40%)
CMYKcmyk(62.1%, 69.9%, 0%, 59.6%)
CIE-LABlab(17.42, 26.55, -41.10)
CIE-LCHlch(17.42, 48.93, 302.86°)
OKLaboklab(29.93% 0.0236 -0.1183)
OKLCHoklch(29.93% 0.121 281.3)
XYZxyz(3.7741, 2.3903, 13.0918)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F67 #5F671F
analogous
#1F3B67 #271F67 #4B1F67
triadic
#271F67 #67271F #1F6727
tetradic
#271F67 #671F3B #5F671F #1F674B
square
#271F67 #671F3B #5F671F #1F674B
split-complementary
#271F67 #674B1F #3B671F
monochromatic
#090718 #151138 #271F67 #392D96 #4B3CC4

Accessibility & contrast

On white

14.21
#271F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F67
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F67#FFFFFF#000000##FFFFFF
##271F671.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#013140
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271f67;
/* rgb */ color: rgb(39, 31, 103);
/* oklch */ color: oklch(29.9% 0.121 281.3);
Tailwind
colors: {
  custom: {
    50: '#695b93',
    500: '#271f67',
    950: '#000000',
  },
}
SCSS
$custom: #271f67;
$custom-light: #695b93;
$custom-dark: #000000;
JSON
{
  "hex": "#271f67",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 246.667,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29929,
    "c": 0.12062,
    "h": 281.3
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#271F67
secondary
#929B46
accent
#DD4BCD
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F67

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

Preview Lab → · Contrast checker → · Palette generator →

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