#27317A#27317A

#27317A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.124 H 272.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#27317A
RGBrgb(39, 49, 122)
HSLhsl(233, 52%, 32%)
HSVhsv(233, 68%, 48%)
CMYKcmyk(68%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.78, 21.31, -42.98)
CIE-LCHlch(23.78, 47.97, 296.37°)
OKLaboklab(35.12% 0.0053 -0.1237)
OKLCHoklch(35.12% 0.124 272.4)
XYZxyz(5.4467, 4.0326, 18.8999)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317A #7A7027
analogous
#275B7A #27317A #47277A
triadic
#27317A #7A2731 #317A27
tetradic
#27317A #7A275B #7A7027 #277A47
square
#27317A #7A275B #7A7027 #277A47
split-complementary
#27317A #7A4727 #5B7A27
monochromatic
#090C1D #181E4C #27317A #3644A8 #5361C8

Accessibility & contrast

On white

11.62
#27317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#27317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317A#FFFFFF#000000##FFFFFF
##27317A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27317a;
/* rgb */ color: rgb(39, 49, 122);
/* oklch */ color: oklch(35.1% 0.124 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c69a1',
    500: '#27317a',
    950: '#000000',
  },
}
SCSS
$custom: #27317a;
$custom-light: #6c69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#27317a",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 232.771,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35124,
    "c": 0.1238,
    "h": 272.4
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#27317A
secondary
#ACA151
accent
#CA4DDB
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #27317A

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

Preview Lab → · Contrast checker → · Palette generator →

#27317A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva