#271E61#271E61

#271E61 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.2% C 0.113 H 282.9°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#271E61
RGBrgb(39, 30, 97)
HSLhsl(248, 53%, 25%)
HSVhsv(248, 69%, 38%)
CMYKcmyk(59.8%, 69.1%, 0%, 62%)
CIE-LABlab(16.62, 25.10, -38.45)
CIE-LCHlch(16.62, 45.92, 303.13°)
OKLaboklab(29.18% 0.0253 -0.1105)
OKLCHoklch(29.18% 0.113 282.9)
XYZxyz(3.4580, 2.2227, 11.5538)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E61 #58611E
analogous
#1E3661 #271E61 #491E61
triadic
#271E61 #61271E #1E6127
tetradic
#271E61 #611E36 #58611E #1E6149
square
#271E61 #611E36 #58611E #1E6149
split-complementary
#271E61 #61491E #36611E
monochromatic
#090717 #141032 #271E61 #3A2C90 #4D3BBE

Accessibility & contrast

On white

14.54
#271E61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271E61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E61
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E61#FFFFFF#000000##FFFFFF
##271E611.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#0A2F3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271e61;
/* rgb */ color: rgb(39, 30, 97);
/* oklch */ color: oklch(29.2% 0.113 282.9);
Tailwind
colors: {
  custom: {
    50: '#685a8f',
    500: '#271e61',
    950: '#000000',
  },
}
SCSS
$custom: #271e61;
$custom-light: #685a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#271e61",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 97
  },
  "hsl": {
    "h": 248.06,
    "s": 52.756,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29177,
    "c": 0.11339,
    "h": 282.9
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#271E61
secondary
#8B9645
accent
#DC4CC9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #271E61

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

Preview Lab → · Contrast checker → · Palette generator →

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