#271F64#271F64

#271F64 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.6% C 0.116 H 281.9°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#271F64
RGBrgb(39, 31, 100)
HSLhsl(247, 53%, 26%)
HSVhsv(247, 69%, 39%)
CMYKcmyk(61%, 69%, 0%, 60.8%)
CIE-LABlab(17.14, 25.49, -39.58)
CIE-LCHlch(17.14, 47.08, 302.78°)
OKLaboklab(29.64% 0.024 -0.1138)
OKLCHoklch(29.64% 0.116 281.9)
XYZxyz(3.6262, 2.3312, 12.3130)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F64 #5C641F
analogous
#1F3964 #271F64 #491F64
triadic
#271F64 #64271F #1F6427
tetradic
#271F64 #641F39 #5C641F #1F6449
square
#271F64 #641F39 #5C641F #1F6449
split-complementary
#271F64 #64491F #39641F
monochromatic
#090717 #151135 #271F64 #392D93 #4B3CC1

Accessibility & contrast

On white

14.32
#271F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F64
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F64#FFFFFF#000000##FFFFFF
##271F641.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#05303E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271f64;
/* rgb */ color: rgb(39, 31, 100);
/* oklch */ color: oklch(29.6% 0.116 281.9);
Tailwind
colors: {
  custom: {
    50: '#695b91',
    500: '#271f64',
    950: '#000000',
  },
}
SCSS
$custom: #271f64;
$custom-light: #695b91;
$custom-dark: #000000;
JSON
{
  "hex": "#271f64",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 246.957,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29641,
    "c": 0.11633,
    "h": 281.9
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#271F64
secondary
#8F9846
accent
#DC4CCB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271F64

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

Preview Lab → · Contrast checker → · Palette generator →

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