#271E8F#271E8F

#271E8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.175 H 275.3°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#271E8F
RGBrgb(39, 30, 143)
HSLhsl(245, 65%, 34%)
HSVhsv(245, 79%, 56%)
CMYKcmyk(72.7%, 79%, 0%, 43.9%)
CIE-LABlab(21.37, 40.83, -60.13)
CIE-LCHlch(21.37, 72.68, 304.18°)
OKLaboklab(33.99% 0.0162 -0.1738)
OKLCHoklch(33.99% 0.175 275.3)
XYZxyz(6.2573, 3.3425, 26.2967)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E8F #868F1E
analogous
#1E4E8F #271E8F #601E8F
triadic
#271E8F #8F271E #1E8F27
tetradic
#271E8F #8F1E4E #868F1E #1E8F60
square
#271E8F #8F1E4E #868F1E #1E8F60
split-complementary
#271E8F #8F601E #4E8F1E
monochromatic
#0B092A #19135C #271E8F #3529C2 #594EDA

Accessibility & contrast

On white

12.59
#271E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#271E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E8F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E8F#FFFFFF#000000##FFFFFF
##271E8F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271e8f;
/* rgb */ color: rgb(39, 30, 143);
/* oklch */ color: oklch(34.0% 0.175 275.3);
Tailwind
colors: {
  custom: {
    50: '#725cb1',
    500: '#271e8f',
    950: '#000000',
  },
}
SCSS
$custom: #271e8f;
$custom-light: #725cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#271e8f",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 244.779,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33995,
    "c": 0.1746,
    "h": 275.3
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#271E8F
secondary
#B4BC4C
accent
#E840DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #271E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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