#254180#254180

#254180 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.112 H 263.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#254180
RGBrgb(37, 65, 128)
HSLhsl(222, 55%, 32%)
HSVhsv(222, 71%, 50%)
CMYKcmyk(71.1%, 49.2%, 0%, 49.8%)
CIE-LABlab(28.73, 12.19, -38.77)
CIE-LCHlch(28.73, 40.64, 287.46°)
OKLaboklab(38.98% -0.0118 -0.1111)
OKLCHoklch(38.98% 0.112 263.9)
XYZxyz(6.5482, 5.7318, 21.1791)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254180 #806425
analogous
#256F80 #254180 #362580
triadic
#254180 #802541 #418025
tetradic
#254180 #80256F #806425 #258036
square
#254180 #80256F #806425 #258036
split-complementary
#254180 #803625 #6F8025
monochromatic
#0A1121 #172951 #254180 #3359AF #5278CD

Accessibility & contrast

On white

9.78
#254180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#254180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254180
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254180#FFFFFF#000000##FFFFFF
##2541801.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204882
Deuteranopia (green-blind)
#0A407F
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #254180;
/* rgb */ color: rgb(37, 65, 128);
/* oklch */ color: oklch(39.0% 0.112 263.9);
Tailwind
colors: {
  custom: {
    50: '#6b75a5',
    500: '#254180',
    950: '#000000',
  },
}
SCSS
$custom: #254180;
$custom-light: #6b75a5;
$custom-dark: #000000;
JSON
{
  "hex": "#254180",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 128
  },
  "hsl": {
    "h": 221.538,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38975,
    "c": 0.11172,
    "h": 263.9
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#254180
secondary
#B19350
accent
#B149DE
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #254180

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

Preview Lab → · Contrast checker → · Palette generator →

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