#271BA0#271BA0

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

Color values

HEX#271BA0
RGBrgb(39, 27, 160)
HSLhsl(245, 71%, 37%)
HSVhsv(245, 83%, 63%)
CMYKcmyk(75.6%, 83.1%, 0%, 37.3%)
CIE-LABlab(22.84, 47.74, -68.16)
CIE-LCHlch(22.84, 83.22, 305.01°)
OKLaboklab(35.6% 0.0129 -0.1971)
OKLCHoklch(35.6% 0.198 273.7)
XYZxyz(7.5717, 3.7525, 33.5761)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271BA0 #94A01B
analogous
#1B51A0 #271BA0 #6A1BA0
triadic
#271BA0 #A0271B #1BA027
tetradic
#271BA0 #A01B51 #94A01B #1BA06A
square
#271BA0 #A01B51 #94A01B #1BA06A
split-complementary
#271BA0 #A06A1B #51A01B
monochromatic
#0D0937 #1A126C #271BA0 #3424D4 #6053E2

Accessibility & contrast

On white

12.00
#271BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#271BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271BA0
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271BA0#FFFFFF#000000##FFFFFF
##271BA01.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #271ba0;
/* rgb */ color: rgb(39, 27, 160);
/* oklch */ color: oklch(35.6% 0.198 273.7);
Tailwind
colors: {
  custom: {
    50: '#775cbe',
    500: '#271ba0',
    950: '#000000',
  },
}
SCSS
$custom: #271ba0;
$custom-light: #775cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#271ba0",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 245.414,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.19756,
    "h": 273.7
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#271BA0
secondary
#BBC552
accent
#EE3ADE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #271BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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