#27418C#27418C

#27418C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.129 H 266.2°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#27418C
RGBrgb(39, 65, 140)
HSLhsl(225, 56%, 35%)
HSVhsv(225, 72%, 55%)
CMYKcmyk(72.1%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.67, 17.19, -44.68)
CIE-LCHlch(29.67, 47.87, 291.05°)
OKLaboklab(40% -0.0084 -0.1284)
OKLCHoklch(40% 0.129 266.2)
XYZxyz(7.4590, 6.1046, 25.5911)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27418C #8C7227
analogous
#27748C #27418C #3F278C
triadic
#27418C #8C2741 #418C27
tetradic
#27418C #8C2774 #8C7227 #278C3F
square
#27418C #8C2774 #8C7227 #278C3F
split-complementary
#27418C #8C3F27 #748C27
monochromatic
#0C152C #1A2B5C #27418C #3457BC #5C7AD2

Accessibility & contrast

On white

9.46
#27418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#27418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27418C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27418C#FFFFFF#000000##FFFFFF
##27418C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #27418c;
/* rgb */ color: rgb(39, 65, 140);
/* oklch */ color: oklch(40.0% 0.129 266.2);
Tailwind
colors: {
  custom: {
    50: '#6f75ae',
    500: '#27418c',
    950: '#000000',
  },
}
SCSS
$custom: #27418c;
$custom-light: #6f75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27418c",
  "rgb": {
    "r": 39,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 224.554,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.12872,
    "h": 266.2
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#27418C
secondary
#B79E58
accent
#B948E0
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #27418C

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

Preview Lab → · Contrast checker → · Palette generator →

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