#271A6F#271A6F

#271A6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.138 H 281.1°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#271A6F
RGBrgb(39, 26, 111)
HSLhsl(249, 62%, 27%)
HSVhsv(249, 77%, 44%)
CMYKcmyk(64.9%, 76.6%, 0%, 56.5%)
CIE-LABlab(17.07, 32.44, -46.89)
CIE-LCHlch(17.07, 57.01, 304.68°)
OKLaboklab(29.93% 0.0264 -0.1352)
OKLCHoklch(29.93% 0.138 281.1)
XYZxyz(4.0744, 2.3175, 15.2685)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A6F #626F1A
analogous
#1A386F #271A6F #521A6F
triadic
#271A6F #6F271A #1A6F27
tetradic
#271A6F #6F1A38 #626F1A #1A6F52
square
#271A6F #6F1A38 #626F1A #1A6F52
split-complementary
#271A6F #6F521A #386F1A
monochromatic
#090619 #160E3D #271A6F #3826A1 #4C34CF

Accessibility & contrast

On white

14.35
#271A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A6F
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A6F#FFFFFF#000000##FFFFFF
##271A6F1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271a6f;
/* rgb */ color: rgb(39, 26, 111);
/* oklch */ color: oklch(29.9% 0.138 281.1);
Tailwind
colors: {
  custom: {
    50: '#6b5899',
    500: '#271a6f',
    950: '#000000',
  },
}
SCSS
$custom: #271a6f;
$custom-light: #6b5899;
$custom-dark: #000000;
JSON
{
  "hex": "#271a6f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 249.176,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.13778,
    "h": 281.1
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#271A6F
secondary
#95A441
accent
#E543CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #271A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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