#27338D#27338D

#27338D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.148 H 271.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#27338D
RGBrgb(39, 51, 141)
HSLhsl(233, 57%, 35%)
HSVhsv(233, 72%, 55%)
CMYKcmyk(72.3%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.93, 27.12, -51.39)
CIE-LCHlch(25.93, 58.11, 297.83°)
OKLaboklab(37.22% 0.0033 -0.1484)
OKLCHoklch(37.22% 0.148 271.3)
XYZxyz(6.8266, 4.7214, 25.7457)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27338D #8D8127
analogous
#27668D #27338D #4E278D
triadic
#27338D #8D2733 #338D27
tetradic
#27338D #8D2766 #8D8127 #278D4E
square
#27338D #8D2766 #8D8127 #278D4E
split-complementary
#27338D #8D4E27 #668D27
monochromatic
#0C102D #1A225D #27338D #3444BD #5C6AD2

Accessibility & contrast

On white

10.80
#27338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#27338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27338D
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27338D#FFFFFF#000000##FFFFFF
##27338D1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #27338d;
/* rgb */ color: rgb(39, 51, 141);
/* oklch */ color: oklch(37.2% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#706aaf',
    500: '#27338d',
    950: '#000000',
  },
}
SCSS
$custom: #27338d;
$custom-light: #706aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#27338d",
  "rgb": {
    "r": 39,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 232.941,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37218,
    "c": 0.1484,
    "h": 271.3
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#27338D
secondary
#B7AC59
accent
#CE48E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27338D

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

Preview Lab → · Contrast checker → · Palette generator →

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