#271EAF#271EAF

#271EAF is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.213 H 272.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#271EAF
RGBrgb(39, 30, 175)
HSLhsl(244, 71%, 40%)
HSVhsv(244, 83%, 69%)
CMYKcmyk(77.7%, 82.9%, 0%, 31.4%)
CIE-LABlab(25.12, 50.97, -73.45)
CIE-LCHlch(25.12, 89.40, 304.76°)
OKLaboklab(37.7% 0.0082 -0.2125)
OKLCHoklch(37.7% 0.213 272.2)
XYZxyz(9.0362, 4.4540, 40.9326)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271EAF #A6AF1E
analogous
#1E5EAF #271EAF #6F1EAF
triadic
#271EAF #AF271E #1EAF27
tetradic
#271EAF #AF1E5E #A6AF1E #1EAF6F
square
#271EAF #AF1E5E #A6AF1E #1EAF6F
split-complementary
#271EAF #AF6F1E #5EAF1E
monochromatic
#100C47 #1B157B #271EAF #3A2FDB #6B63E4

Accessibility & contrast

On white

11.11
#271EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#271EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271EAF
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271EAF#FFFFFF#000000##FFFFFF
##271EAF1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B3
Deuteranopia (green-blind)
#0034AD
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #271eaf;
/* rgb */ color: rgb(39, 30, 175);
/* oklch */ color: oklch(37.7% 0.213 272.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc8',
    500: '#271eaf',
    950: '#000000',
  },
}
SCSS
$custom: #271eaf;
$custom-light: #7a5fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#271eaf",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 175
  },
  "hsl": {
    "h": 243.724,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37698,
    "c": 0.21267,
    "h": 272.2
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#271EAF
secondary
#C3C960
accent
#ED3AE2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #271EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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