#27338B#27338B

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

Color values

HEX#27338B
RGBrgb(39, 51, 139)
HSLhsl(233, 56%, 35%)
HSVhsv(233, 72%, 55%)
CMYKcmyk(71.9%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.75, 26.37, -50.43)
CIE-LCHlch(25.75, 56.91, 297.60°)
OKLaboklab(37.04% 0.0034 -0.1456)
OKLCHoklch(37.04% 0.146 271.3)
XYZxyz(6.6791, 4.6624, 24.9690)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27338B #8B7F27
analogous
#27658B #27338B #4D278B
triadic
#27338B #8B2733 #338B27
tetradic
#27338B #8B2765 #8B7F27 #278B4D
square
#27338B #8B2765 #8B7F27 #278B4D
split-complementary
#27338B #8B4D27 #658B27
monochromatic
#0C102B #1A215B #27338B #3445BB #5B69D1

Accessibility & contrast

On white

10.87
#27338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#27338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27338B
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27338B#FFFFFF#000000##FFFFFF
##27338B1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #27338b;
/* rgb */ color: rgb(39, 51, 139);
/* oklch */ color: oklch(37.0% 0.146 271.3);
Tailwind
colors: {
  custom: {
    50: '#706aae',
    500: '#27338b',
    950: '#000000',
  },
}
SCSS
$custom: #27338b;
$custom-light: #706aae;
$custom-dark: #000000;
JSON
{
  "hex": "#27338b",
  "rgb": {
    "r": 39,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 232.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37035,
    "c": 0.1456,
    "h": 271.3
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#27338B
secondary
#B6AB58
accent
#CD48DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27338B

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

Preview Lab → · Contrast checker → · Palette generator →

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