#154181#154181

#154181 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.118 H 258.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#154181
RGBrgb(21, 65, 129)
HSLhsl(216, 72%, 29%)
HSVhsv(216, 84%, 51%)
CMYKcmyk(83.7%, 49.6%, 0%, 49.4%)
CIE-LABlab(28.18, 10.42, -40.30)
CIE-LCHlch(28.18, 41.63, 284.49°)
OKLaboklab(38.41% -0.0238 -0.1159)
OKLCHoklch(38.41% 0.118 258.4)
XYZxyz(6.1605, 5.5243, 21.5062)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154181 #815515
analogous
#157781 #154181 #1F1581
triadic
#154181 #811541 #418115
tetradic
#154181 #811577 #815515 #15811F
square
#154181 #811577 #815515 #15811F
split-complementary
#154181 #811F15 #778115
monochromatic
#040D1A #0C264C #154181 #1E5CB6 #3378DE

Accessibility & contrast

On white

9.98
#154181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#154181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154181
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154181#FFFFFF#000000##FFFFFF
##1541811.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4883
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #154181;
/* rgb */ color: rgb(21, 65, 129);
/* oklch */ color: oklch(38.4% 0.118 258.4);
Tailwind
colors: {
  custom: {
    50: '#6675a6',
    500: '#154181',
    950: '#000000',
  },
}
SCSS
$custom: #154181;
$custom-light: #6675a6;
$custom-dark: #000000;
JSON
{
  "hex": "#154181",
  "rgb": {
    "r": 21,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 215.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.1183,
    "h": 258.4
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#154181
secondary
#B6843C
accent
#A539EF
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #154181

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

Preview Lab → · Contrast checker → · Palette generator →

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