#27338E#27338E

#27338E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.150 H 271.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#27338E
RGBrgb(39, 51, 142)
HSLhsl(233, 57%, 35%)
HSVhsv(233, 73%, 56%)
CMYKcmyk(72.5%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.01, 27.50, -51.86)
CIE-LCHlch(26.01, 58.70, 297.93°)
OKLaboklab(37.31% 0.0033 -0.1497)
OKLCHoklch(37.31% 0.15 271.3)
XYZxyz(6.9014, 4.7513, 26.1393)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27338E #8E8227
analogous
#27668E #27338E #4F278E
triadic
#27338E #8E2733 #338E27
tetradic
#27338E #8E2766 #8E8227 #278E4F
square
#27338E #8E2766 #8E8227 #278E4F
split-complementary
#27338E #8E4F27 #668E27
monochromatic
#0D112E #1A225E #27338E #3444BE #5D6BD2

Accessibility & contrast

On white

10.77
#27338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#27338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27338E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27338E#FFFFFF#000000##FFFFFF
##27338E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #27338e;
/* rgb */ color: rgb(39, 51, 142);
/* oklch */ color: oklch(37.3% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#706ab0',
    500: '#27338e',
    950: '#000000',
  },
}
SCSS
$custom: #27338e;
$custom-light: #706ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#27338e",
  "rgb": {
    "r": 39,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 233.01,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37311,
    "c": 0.14979,
    "h": 271.3
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#27338E
secondary
#B8AD59
accent
#CE48E0
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #27338E

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

Preview Lab → · Contrast checker → · Palette generator →

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