#27317D#27317D

#27317D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.128 H 272.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#27317D
RGBrgb(39, 49, 125)
HSLhsl(233, 52%, 32%)
HSVhsv(233, 69%, 49%)
CMYKcmyk(68.8%, 60.8%, 0%, 51%)
CIE-LABlab(24.03, 22.44, -44.48)
CIE-LCHlch(24.03, 49.82, 296.78°)
OKLaboklab(35.39% 0.0053 -0.1281)
OKLCHoklch(35.39% 0.128 272.4)
XYZxyz(5.6354, 4.1081, 19.8940)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27317D #7D7327
analogous
#275C7D #27317D #48277D
triadic
#27317D #7D2731 #317D27
tetradic
#27317D #7D275C #7D7327 #277D48
square
#27317D #7D275C #7D7327 #277D48
split-complementary
#27317D #7D4827 #5C7D27
monochromatic
#0A0C20 #181F4E #27317D #3643AC #5562CA

Accessibility & contrast

On white

11.53
#27317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#27317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27317D
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27317D#FFFFFF#000000##FFFFFF
##27317D1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27317d;
/* rgb */ color: rgb(39, 49, 125);
/* oklch */ color: oklch(35.4% 0.128 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c69a3',
    500: '#27317d',
    950: '#000000',
  },
}
SCSS
$custom: #27317d;
$custom-light: #6c69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27317d",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 233.023,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35385,
    "c": 0.1282,
    "h": 272.4
  },
  "luminance": 0.04109
}

Semantic roles & 50–950 ramp

primary
#27317D
secondary
#AFA451
accent
#CB4CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #27317D

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

Preview Lab → · Contrast checker → · Palette generator →

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