#27318F#27318F

#27318F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.154 H 271.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#27318F
RGBrgb(39, 49, 143)
HSLhsl(234, 57%, 36%)
HSVhsv(234, 73%, 56%)
CMYKcmyk(72.7%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.59, 29.21, -53.17)
CIE-LCHlch(25.59, 60.66, 298.78°)
OKLaboklab(37.03% 0.0047 -0.1536)
OKLCHoklch(37.03% 0.154 271.8)
XYZxyz(6.8913, 4.6104, 26.5080)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318F #8F8527
analogous
#27658F #27318F #51278F
triadic
#27318F #8F2731 #318F27
tetradic
#27318F #8F2765 #8F8527 #278F51
square
#27318F #8F2765 #8F8527 #278F51
split-complementary
#27318F #8F5127 #658F27
monochromatic
#0D102F #1A215F #27318F #3441BF #5D69D3

Accessibility & contrast

On white

10.92
#27318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#27318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318F#FFFFFF#000000##FFFFFF
##27318F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #27318f;
/* rgb */ color: rgb(39, 49, 143);
/* oklch */ color: oklch(37.0% 0.154 271.8);
Tailwind
colors: {
  custom: {
    50: '#7169b1',
    500: '#27318f',
    950: '#000000',
  },
}
SCSS
$custom: #27318f;
$custom-light: #7169b1;
$custom-dark: #000000;
JSON
{
  "hex": "#27318f",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 234.231,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3703,
    "c": 0.15366,
    "h": 271.8
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#27318F
secondary
#B8AF5A
accent
#D247E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #27318F

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

Preview Lab → · Contrast checker → · Palette generator →

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