#271A6A#271A6A

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

Color values

HEX#271A6A
RGBrgb(39, 26, 106)
HSLhsl(250, 61%, 26%)
HSVhsv(250, 75%, 42%)
CMYKcmyk(63.2%, 75.5%, 0%, 58.4%)
CIE-LABlab(16.56, 30.75, -44.48)
CIE-LCHlch(16.56, 54.07, 304.66°)
OKLaboklab(29.4% 0.0276 -0.1282)
OKLCHoklch(29.4% 0.131 282.1)
XYZxyz(3.8068, 2.2105, 13.8589)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A6A #5D6A1A
analogous
#1A356A #271A6A #4F1A6A
triadic
#271A6A #6A271A #1A6A27
tetradic
#271A6A #6A1A35 #5D6A1A #1A6A4F
square
#271A6A #6A1A35 #5D6A1A #1A6A4F
split-complementary
#271A6A #6A4F1A #356A1A
monochromatic
#090619 #150E39 #271A6A #39269B #4B32CC

Accessibility & contrast

On white

14.56
#271A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A6A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A6A#FFFFFF#000000##FFFFFF
##271A6A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271a6a;
/* rgb */ color: rgb(39, 26, 106);
/* oklch */ color: oklch(29.4% 0.131 282.1);
Tailwind
colors: {
  custom: {
    50: '#6a5895',
    500: '#271a6a',
    950: '#000000',
  },
}
SCSS
$custom: #271a6a;
$custom-light: #6a5895;
$custom-dark: #000000;
JSON
{
  "hex": "#271a6a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 249.75,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29402,
    "c": 0.13111,
    "h": 282.1
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#271A6A
secondary
#909F40
accent
#E444CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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