#271A6C#271A6C

#271A6C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.134 H 281.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#271A6C
RGBrgb(39, 26, 108)
HSLhsl(250, 61%, 26%)
HSVhsv(250, 76%, 42%)
CMYKcmyk(63.9%, 75.9%, 0%, 57.6%)
CIE-LABlab(16.76, 31.42, -45.44)
CIE-LCHlch(16.76, 55.25, 304.66°)
OKLaboklab(29.61% 0.0271 -0.131)
OKLCHoklch(29.61% 0.134 281.7)
XYZxyz(3.9120, 2.2526, 14.4131)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A6C #5F6C1A
analogous
#1A366C #271A6C #501A6C
triadic
#271A6C #6C271A #1A6C27
tetradic
#271A6C #6C1A36 #5F6C1A #1A6C50
square
#271A6C #6C1A36 #5F6C1A #1A6C50
split-complementary
#271A6C #6C501A #366C1A
monochromatic
#090619 #150E3B #271A6C #39269D #4B33CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271A6C#FFFFFF#000000##FFFFFF
##271A6C1.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)
#002C6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271a6c;
/* rgb */ color: rgb(39, 26, 108);
/* oklch */ color: oklch(29.6% 0.134 281.7);
Tailwind
colors: {
  custom: {
    50: '#6b5897',
    500: '#271a6c',
    950: '#000000',
  },
}
SCSS
$custom: #271a6c;
$custom-light: #6b5897;
$custom-dark: #000000;
JSON
{
  "hex": "#271a6c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 249.512,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2961,
    "c": 0.13379,
    "h": 281.7
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#271A6C
secondary
#92A141
accent
#E443CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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