#154794#154794

#154794 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.3% C 0.138 H 259.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#154794
RGBrgb(21, 71, 148)
HSLhsl(216, 75%, 33%)
HSVhsv(216, 86%, 58%)
CMYKcmyk(85.8%, 52%, 0%, 42%)
CIE-LABlab(31.35, 14.15, -46.90)
CIE-LCHlch(31.35, 48.98, 286.79°)
OKLaboklab(41.28% -0.0254 -0.1351)
OKLCHoklch(41.28% 0.138 259.3)
XYZxyz(7.9058, 6.8030, 28.9077)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154794 #946215
analogous
#158694 #154794 #221594
triadic
#154794 #941547 #479415
tetradic
#154794 #941586 #946215 #159422
square
#154794 #941586 #946215 #159422
split-complementary
#154794 #942215 #869415
monochromatic
#061429 #0D2D5E #154794 #1D61CA #4080E4

Accessibility & contrast

On white

8.90
#154794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#154794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154794
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154794#FFFFFF#000000##FFFFFF
##1547941.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145097
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #154794;
/* rgb */ color: rgb(21, 71, 148);
/* oklch */ color: oklch(41.3% 0.138 259.3);
Tailwind
colors: {
  custom: {
    50: '#6b79b4',
    500: '#154794',
    950: '#000000',
  },
}
SCSS
$custom: #154794;
$custom-light: #6b79b4;
$custom-dark: #000000;
JSON
{
  "hex": "#154794",
  "rgb": {
    "r": 21,
    "g": 71,
    "b": 148
  },
  "hsl": {
    "h": 216.378,
    "s": 75.148,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41279,
    "c": 0.13753,
    "h": 259.3
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#154794
secondary
#C49041
accent
#A836F2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #154794

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

Preview Lab → · Contrast checker → · Palette generator →

#154794 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva