#271D65#271D65

#271D65 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 282.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#271D65
RGBrgb(39, 29, 101)
HSLhsl(248, 55%, 25%)
HSVhsv(248, 71%, 40%)
CMYKcmyk(61.4%, 71.3%, 0%, 60.4%)
CIE-LABlab(16.75, 27.15, -40.88)
CIE-LCHlch(16.75, 49.08, 303.59°)
OKLaboklab(29.39% 0.0258 -0.1176)
OKLCHoklch(29.39% 0.12 282.4)
XYZxyz(3.6243, 2.2494, 12.5526)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D65 #5B651D
analogous
#1D3765 #271D65 #4B1D65
triadic
#271D65 #65271D #1D6527
tetradic
#271D65 #651D37 #5B651D #1D654B
square
#271D65 #651D37 #5B651D #1D654B
split-complementary
#271D65 #654B1D #37651D
monochromatic
#090718 #150F35 #271D65 #392B95 #4C38C4

Accessibility & contrast

On white

14.48
#271D65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271D65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D65
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D65#FFFFFF#000000##FFFFFF
##271D651.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#04303E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271d65;
/* rgb */ color: rgb(39, 29, 101);
/* oklch */ color: oklch(29.4% 0.120 282.4);
Tailwind
colors: {
  custom: {
    50: '#695a92',
    500: '#271d65',
    950: '#000000',
  },
}
SCSS
$custom: #271d65;
$custom-light: #695a92;
$custom-dark: #000000;
JSON
{
  "hex": "#271d65",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 101
  },
  "hsl": {
    "h": 248.333,
    "s": 55.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29387,
    "c": 0.12045,
    "h": 282.4
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#271D65
secondary
#8E9A44
accent
#DF49CA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #271D65

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

Preview Lab → · Contrast checker → · Palette generator →

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