#27398B#27398B

#27398B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.138 H 269.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#27398B
RGBrgb(39, 57, 139)
HSLhsl(229, 56%, 35%)
HSVhsv(229, 72%, 55%)
CMYKcmyk(71.9%, 59%, 0%, 45.5%)
CIE-LABlab(27.36, 22.29, -47.82)
CIE-LCHlch(27.36, 52.76, 294.99°)
OKLaboklab(38.23% -0.0015 -0.1378)
OKLCHoklch(38.23% 0.138 269.4)
XYZxyz(6.9584, 5.2210, 25.0621)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27398B #8B7927
analogous
#276B8B #27398B #47278B
triadic
#27398B #8B2739 #398B27
tetradic
#27398B #8B276B #8B7927 #278B47
square
#27398B #8B276B #8B7927 #278B47
split-complementary
#27398B #8B4727 #6B8B27
monochromatic
#0C122B #1A255B #27398B #344DBB #5B71D1

Accessibility & contrast

On white

10.27
#27398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#27398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27398B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27398B#FFFFFF#000000##FFFFFF
##27398B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #27398b;
/* rgb */ color: rgb(39, 57, 139);
/* oklch */ color: oklch(38.2% 0.138 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f6fae',
    500: '#27398b',
    950: '#000000',
  },
}
SCSS
$custom: #27398b;
$custom-light: #6f6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#27398b",
  "rgb": {
    "r": 39,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 229.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.13782,
    "h": 269.4
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#27398B
secondary
#B6A558
accent
#C448DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #27398B

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

Preview Lab → · Contrast checker → · Palette generator →

#27398B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva