#271E64#271E64

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

Color values

HEX#271E64
RGBrgb(39, 30, 100)
HSLhsl(248, 54%, 25%)
HSVhsv(248, 70%, 39%)
CMYKcmyk(61%, 70%, 0%, 60.8%)
CIE-LABlab(16.89, 26.15, -39.98)
CIE-LCHlch(16.89, 47.78, 303.18°)
OKLaboklab(29.46% 0.025 -0.115)
OKLCHoklch(29.46% 0.118 282.2)
XYZxyz(3.6005, 2.2797, 12.3044)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E64 #5B641E
analogous
#1E3864 #271E64 #4A1E64
triadic
#271E64 #64271E #1E6427
tetradic
#271E64 #641E38 #5B641E #1E644A
square
#271E64 #641E38 #5B641E #1E644A
split-complementary
#271E64 #644A1E #38641E
monochromatic
#090718 #151035 #271E64 #392C93 #4C3AC2

Accessibility & contrast

On white

14.42
#271E64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E64
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E64#FFFFFF#000000##FFFFFF
##271E641.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#06303E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271e64;
/* rgb */ color: rgb(39, 30, 100);
/* oklch */ color: oklch(29.5% 0.118 282.2);
Tailwind
colors: {
  custom: {
    50: '#695a91',
    500: '#271e64',
    950: '#000000',
  },
}
SCSS
$custom: #271e64;
$custom-light: #695a91;
$custom-dark: #000000;
JSON
{
  "hex": "#271e64",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 100
  },
  "hsl": {
    "h": 247.714,
    "s": 53.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29463,
    "c": 0.1177,
    "h": 282.2
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#271E64
secondary
#8E9945
accent
#DD4BCA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271E64

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

Preview Lab → · Contrast checker → · Palette generator →

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