#27317F#27317F

#27317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.131 H 272.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#27317F
RGBrgb(39, 49, 127)
HSLhsl(233, 53%, 33%)
HSVhsv(233, 69%, 50%)
CMYKcmyk(69.3%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.19, 23.20, -45.47)
CIE-LCHlch(24.19, 51.05, 297.04°)
OKLaboklab(35.56% 0.0053 -0.131)
OKLCHoklch(35.56% 0.131 272.3)
XYZxyz(5.7645, 4.1597, 20.5737)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317F #7F7527
analogous
#275D7F #27317F #49277F
triadic
#27317F #7F2731 #317F27
tetradic
#27317F #7F275D #7F7527 #277F49
square
#27317F #7F275D #7F7527 #277F49
split-complementary
#27317F #7F4927 #5D7F27
monochromatic
#0A0D21 #191F50 #27317F #3543AE #5563CB

Accessibility & contrast

On white

11.46
#27317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#27317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317F#FFFFFF#000000##FFFFFF
##27317F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27317f;
/* rgb */ color: rgb(39, 49, 127);
/* oklch */ color: oklch(35.6% 0.131 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d69a5',
    500: '#27317f',
    950: '#000000',
  },
}
SCSS
$custom: #27317f;
$custom-light: #6d69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27317f",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 233.182,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35561,
    "c": 0.13111,
    "h": 272.3
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#27317F
secondary
#B0A552
accent
#CC4BDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #27317F

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

Preview Lab → · Contrast checker → · Palette generator →

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