#271F95#271F95

#271F95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.181 H 274.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#271F95
RGBrgb(39, 31, 149)
HSLhsl(244, 66%, 35%)
HSVhsv(244, 79%, 58%)
CMYKcmyk(73.8%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.23, 42.26, -62.41)
CIE-LCHlch(22.23, 75.37, 304.10°)
OKLaboklab(34.8% 0.0143 -0.1805)
OKLCHoklch(34.8% 0.181 274.5)
XYZxyz(6.7497, 3.5806, 28.7633)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F95 #8D951F
analogous
#1F5295 #271F95 #621F95
triadic
#271F95 #95271F #1F9527
tetradic
#271F95 #951F52 #8D951F #1F9562
square
#271F95 #951F52 #8D951F #1F9562
split-complementary
#271F95 #95621F #52951F
monochromatic
#0C0A30 #1A1462 #271F95 #342AC8 #5C53DB

Accessibility & contrast

On white

12.24
#271F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#271F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F95
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F95#FFFFFF#000000##FFFFFF
##271F951.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271f95;
/* rgb */ color: rgb(39, 31, 149);
/* oklch */ color: oklch(34.8% 0.181 274.5);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#271f95',
    950: '#000000',
  },
}
SCSS
$custom: #271f95;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#271f95",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 244.068,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34803,
    "c": 0.18106,
    "h": 274.5
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#271F95
secondary
#B7BF51
accent
#E93FDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271F95

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

Preview Lab → · Contrast checker → · Palette generator →

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