#27338C#27338C

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

Color values

HEX#27338C
RGBrgb(39, 51, 140)
HSLhsl(233, 56%, 35%)
HSVhsv(233, 72%, 55%)
CMYKcmyk(72.1%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.84, 26.75, -50.91)
CIE-LCHlch(25.84, 57.51, 297.72°)
OKLaboklab(37.13% 0.0034 -0.147)
OKLCHoklch(37.13% 0.147 271.3)
XYZxyz(6.7525, 4.6918, 25.3556)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27338C #8C8027
analogous
#27668C #27338C #4D278C
triadic
#27338C #8C2733 #338C27
tetradic
#27338C #8C2766 #8C8027 #278C4D
square
#27338C #8C2766 #8C8027 #278C4D
split-complementary
#27338C #8C4D27 #668C27
monochromatic
#0C102C #1A225C #27338C #3444BC #5C6AD2

Accessibility & contrast

On white

10.83
#27338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27338C
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27338C#FFFFFF#000000##FFFFFF
##27338C1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #27338c;
/* rgb */ color: rgb(39, 51, 140);
/* oklch */ color: oklch(37.1% 0.147 271.3);
Tailwind
colors: {
  custom: {
    50: '#706aae',
    500: '#27338c',
    950: '#000000',
  },
}
SCSS
$custom: #27338c;
$custom-light: #706aae;
$custom-dark: #000000;
JSON
{
  "hex": "#27338c",
  "rgb": {
    "r": 39,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 232.871,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37126,
    "c": 0.147,
    "h": 271.3
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#27338C
secondary
#B7AB58
accent
#CE48E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27338C

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

Preview Lab → · Contrast checker → · Palette generator →

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