#154282#154282

#154282 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.118 H 258.1°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#154282
RGBrgb(21, 66, 130)
HSLhsl(215, 72%, 30%)
HSVhsv(215, 84%, 51%)
CMYKcmyk(83.8%, 49.2%, 0%, 49%)
CIE-LABlab(28.56, 10.14, -40.32)
CIE-LCHlch(28.56, 41.58, 284.12°)
OKLaboklab(38.72% -0.0244 -0.1159)
OKLCHoklch(38.72% 0.118 258.1)
XYZxyz(6.2853, 5.6668, 21.8773)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154282 #825515
analogous
#157982 #154282 #1E1582
triadic
#154282 #821542 #428215
tetradic
#154282 #821579 #825515 #15821E
square
#154282 #821579 #825515 #15821E
split-complementary
#154282 #821E15 #798215
monochromatic
#040D1A #0C274D #154282 #1E5DB7 #337ADE

Accessibility & contrast

On white

9.84
#154282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #154282
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154282#FFFFFF#000000##FFFFFF
##1542821.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #154282;
/* rgb */ color: rgb(21, 66, 130);
/* oklch */ color: oklch(38.7% 0.118 258.1);
Tailwind
colors: {
  custom: {
    50: '#6675a7',
    500: '#154282',
    950: '#000000',
  },
}
SCSS
$custom: #154282;
$custom-light: #6675a7;
$custom-dark: #000000;
JSON
{
  "hex": "#154282",
  "rgb": {
    "r": 21,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 215.229,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38718,
    "c": 0.11845,
    "h": 258.1
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#154282
secondary
#B7843C
accent
#A439EF
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #154282

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

Preview Lab → · Contrast checker → · Palette generator →

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