#154281#154281

#154281 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.117 H 257.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#154281
RGBrgb(21, 66, 129)
HSLhsl(215, 72%, 29%)
HSVhsv(215, 84%, 51%)
CMYKcmyk(83.7%, 48.8%, 0%, 49.4%)
CIE-LABlab(28.49, 9.73, -39.81)
CIE-LCHlch(28.49, 40.98, 283.73°)
OKLaboklab(38.64% -0.0246 -0.1144)
OKLCHoklch(38.64% 0.117 257.9)
XYZxyz(6.2185, 5.6401, 21.5255)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154281 #815415
analogous
#157881 #154281 #1E1581
triadic
#154281 #811542 #428115
tetradic
#154281 #811578 #815415 #15811E
square
#154281 #811578 #815415 #15811E
split-complementary
#154281 #811E15 #788115
monochromatic
#040D1A #0C274C #154281 #1E5DB6 #337ADE

Accessibility & contrast

On white

9.87
#154281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#154281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154281
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154281#FFFFFF#000000##FFFFFF
##1542811.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4883
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #154281;
/* rgb */ color: rgb(21, 66, 129);
/* oklch */ color: oklch(38.6% 0.117 257.9);
Tailwind
colors: {
  custom: {
    50: '#6675a6',
    500: '#154281',
    950: '#000000',
  },
}
SCSS
$custom: #154281;
$custom-light: #6675a6;
$custom-dark: #000000;
JSON
{
  "hex": "#154281",
  "rgb": {
    "r": 21,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 215,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.11702,
    "h": 257.9
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#154281
secondary
#B6833C
accent
#A339EF
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #154281

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

Preview Lab → · Contrast checker → · Palette generator →

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