#271F94#271F94

#271F94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.180 H 274.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#271F94
RGBrgb(39, 31, 148)
HSLhsl(244, 65%, 35%)
HSVhsv(244, 79%, 58%)
CMYKcmyk(73.6%, 79.1%, 0%, 42%)
CIE-LABlab(22.12, 41.93, -61.98)
CIE-LCHlch(22.12, 74.83, 304.08°)
OKLaboklab(34.69% 0.0145 -0.1793)
OKLCHoklch(34.69% 0.18 274.6)
XYZxyz(6.6702, 3.5488, 28.3447)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F94 #8C941F
analogous
#1F5194 #271F94 #621F94
triadic
#271F94 #94271F #1F9427
tetradic
#271F94 #941F51 #8C941F #1F9462
square
#271F94 #941F51 #8C941F #1F9462
split-complementary
#271F94 #94621F #51941F
monochromatic
#0C0A2F #1A1461 #271F94 #342AC7 #5C53DB

Accessibility & contrast

On white

12.28
#271F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#271F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F94
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F94#FFFFFF#000000##FFFFFF
##271F941.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #271f94;
/* rgb */ color: rgb(39, 31, 148);
/* oklch */ color: oklch(34.7% 0.180 274.6);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#271f94',
    950: '#000000',
  },
}
SCSS
$custom: #271f94;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#271f94",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 244.103,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.17984,
    "h": 274.6
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#271F94
secondary
#B7BE51
accent
#E83FDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271F94

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

Preview Lab → · Contrast checker → · Palette generator →

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