#271CA0#271CA0

#271CA0 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.197 H 273.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#271CA0
RGBrgb(39, 28, 160)
HSLhsl(245, 70%, 37%)
HSVhsv(245, 83%, 63%)
CMYKcmyk(75.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(23.00, 47.28, -67.90)
CIE-LCHlch(23.00, 82.73, 304.85°)
OKLaboklab(35.71% 0.0126 -0.1964)
OKLCHoklch(35.71% 0.197 273.7)
XYZxyz(7.5950, 3.7991, 33.5839)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271CA0 #95A01C
analogous
#1C53A0 #271CA0 #691CA0
triadic
#271CA0 #A0271C #1CA027
tetradic
#271CA0 #A01C53 #95A01C #1CA069
square
#271CA0 #A01C53 #95A01C #1CA069
split-complementary
#271CA0 #A0691C #53A01C
monochromatic
#0E0A38 #1A136C #271CA0 #3425D4 #6155E1

Accessibility & contrast

On white

11.93
#271CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#271CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271CA0
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271CA0#FFFFFF#000000##FFFFFF
##271CA01.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #271ca0;
/* rgb */ color: rgb(39, 28, 160);
/* oklch */ color: oklch(35.7% 0.197 273.7);
Tailwind
colors: {
  custom: {
    50: '#775cbd',
    500: '#271ca0',
    950: '#000000',
  },
}
SCSS
$custom: #271ca0;
$custom-light: #775cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#271ca0",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 245,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.19678,
    "h": 273.7
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#271CA0
secondary
#BBC453
accent
#ED3BDE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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