#271A6E#271A6E

#271A6E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.136 H 281.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#271A6E
RGBrgb(39, 26, 110)
HSLhsl(249, 62%, 27%)
HSVhsv(249, 76%, 43%)
CMYKcmyk(64.5%, 76.4%, 0%, 56.9%)
CIE-LABlab(16.97, 32.10, -46.41)
CIE-LCHlch(16.97, 56.43, 304.67°)
OKLaboklab(29.82% 0.0267 -0.1338)
OKLCHoklch(29.82% 0.136 281.3)
XYZxyz(4.0197, 2.2956, 14.9801)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A6E #616E1A
analogous
#1A376E #271A6E #511A6E
triadic
#271A6E #6E271A #1A6E27
tetradic
#271A6E #6E1A37 #616E1A #1A6E51
square
#271A6E #6E1A37 #616E1A #1A6E51
split-complementary
#271A6E #6E511A #376E1A
monochromatic
#090619 #150E3D #271A6E #3926A0 #4C34CF

Accessibility & contrast

On white

14.39
#271A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A6E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A6E#FFFFFF#000000##FFFFFF
##271A6E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271a6e;
/* rgb */ color: rgb(39, 26, 110);
/* oklch */ color: oklch(29.8% 0.136 281.3);
Tailwind
colors: {
  custom: {
    50: '#6b5898',
    500: '#271a6e',
    950: '#000000',
  },
}
SCSS
$custom: #271a6e;
$custom-light: #6b5898;
$custom-dark: #000000;
JSON
{
  "hex": "#271a6e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 249.286,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.13645,
    "h": 281.3
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#271A6E
secondary
#94A341
accent
#E543CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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