#271F63#271F63

#271F63 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.5% C 0.115 H 282.1°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#271F63
RGBrgb(39, 31, 99)
HSLhsl(247, 52%, 25%)
HSVhsv(247, 69%, 39%)
CMYKcmyk(60.6%, 68.7%, 0%, 61.2%)
CIE-LABlab(17.05, 25.14, -39.07)
CIE-LCHlch(17.05, 46.46, 302.75°)
OKLaboklab(29.55% 0.0241 -0.1123)
OKLCHoklch(29.55% 0.115 282.1)
XYZxyz(3.5781, 2.3119, 12.0597)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F63 #5B631F
analogous
#1F3963 #271F63 #491F63
triadic
#271F63 #63271F #1F6327
tetradic
#271F63 #631F39 #5B631F #1F6349
square
#271F63 #631F39 #5B631F #1F6349
split-complementary
#271F63 #63491F #39631F
monochromatic
#090717 #151034 #271F63 #392E92 #4C3CC0

Accessibility & contrast

On white

14.36
#271F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F63
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F63#FFFFFF#000000##FFFFFF
##271F631.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#07303E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271f63;
/* rgb */ color: rgb(39, 31, 99);
/* oklch */ color: oklch(29.5% 0.115 282.1);
Tailwind
colors: {
  custom: {
    50: '#685b90',
    500: '#271f63',
    950: '#000000',
  },
}
SCSS
$custom: #271f63;
$custom-light: #685b90;
$custom-dark: #000000;
JSON
{
  "hex": "#271f63",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 247.059,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29546,
    "c": 0.11489,
    "h": 282.1
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#271F63
secondary
#8E9846
accent
#DC4CCB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #271F63

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

Preview Lab → · Contrast checker → · Palette generator →

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