#271C5F#271C5F

#271C5F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.113 H 284.1°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#271C5F
RGBrgb(39, 28, 95)
HSLhsl(250, 54%, 24%)
HSVhsv(250, 71%, 37%)
CMYKcmyk(58.9%, 70.5%, 0%, 62.7%)
CIE-LABlab(15.94, 25.71, -38.22)
CIE-LCHlch(15.94, 46.07, 303.93°)
OKLaboklab(28.63% 0.0277 -0.1098)
OKLCHoklch(28.63% 0.113 284.1)
XYZxyz(3.3169, 2.0879, 11.0525)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C5F #545F1C
analogous
#1C335F #271C5F #491C5F
triadic
#271C5F #5F271C #1C5F27
tetradic
#271C5F #5F1C33 #545F1C #1C5F49
square
#271C5F #5F1C33 #545F1C #1C5F49
split-complementary
#271C5F #5F491C #335F1C
monochromatic
#0A0718 #140E30 #271C5F #3A2A8E #4E38BE

Accessibility & contrast

On white

14.81
#271C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C5F
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C5F#FFFFFF#000000##FFFFFF
##271C5F1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#0D2D3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271c5f;
/* rgb */ color: rgb(39, 28, 95);
/* oklch */ color: oklch(28.6% 0.113 284.1);
Tailwind
colors: {
  custom: {
    50: '#68598d',
    500: '#271c5f',
    950: '#000000',
  },
}
SCSS
$custom: #271c5f;
$custom-light: #68598d;
$custom-dark: #000000;
JSON
{
  "hex": "#271c5f",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 249.851,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28632,
    "c": 0.11329,
    "h": 284.1
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#271C5F
secondary
#879442
accent
#DE4AC6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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