#271C7B#271C7B

#271C7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.151 H 278.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#271C7B
RGBrgb(39, 28, 123)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 77%, 48%)
CMYKcmyk(68.3%, 77.2%, 0%, 51.8%)
CIE-LABlab(18.76, 35.31, -51.83)
CIE-LCHlch(18.76, 62.71, 304.26°)
OKLaboklab(31.51% 0.0221 -0.1497)
OKLCHoklch(31.51% 0.151 278.4)
XYZxyz(4.8260, 2.6915, 19.0002)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C7B #707B1C
analogous
#1C417B #271C7B #561C7B
triadic
#271C7B #7B271C #1C7B27
tetradic
#271C7B #7B1C41 #707B1C #1C7B56
square
#271C7B #7B1C41 #707B1C #1C7B56
split-complementary
#271C7B #7B561C #417B1C
monochromatic
#080619 #171149 #271C7B #3727AD #503ED3

Accessibility & contrast

On white

13.65
#271C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C7B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C7B#FFFFFF#000000##FFFFFF
##271C7B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271c7b;
/* rgb */ color: rgb(39, 28, 123);
/* oklch */ color: oklch(31.5% 0.151 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e5aa2',
    500: '#271c7b',
    950: '#000000',
  },
}
SCSS
$custom: #271c7b;
$custom-light: #6e5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#271c7b",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 246.947,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31507,
    "c": 0.15129,
    "h": 278.4
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#271C7B
secondary
#A2AF44
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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