#254780#254780

#254780 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.104 H 260.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#254780
RGBrgb(37, 71, 128)
HSLhsl(218, 55%, 32%)
HSVhsv(218, 71%, 50%)
CMYKcmyk(71.1%, 44.5%, 0%, 49.8%)
CIE-LABlab(30.54, 8.09, -35.86)
CIE-LCHlch(30.54, 36.76, 282.72°)
OKLaboklab(40.37% -0.0179 -0.1024)
OKLCHoklch(40.37% 0.104 260.1)
XYZxyz(6.9111, 6.4576, 21.3001)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254780 #805E25
analogous
#257580 #254780 #302580
triadic
#254780 #802547 #478025
tetradic
#254780 #802575 #805E25 #258030
square
#254780 #802575 #805E25 #258030
split-complementary
#254780 #803025 #758025
monochromatic
#0A1221 #172D51 #254780 #3361AF #5280CD

Accessibility & contrast

On white

9.16
#254780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#254780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254780
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254780#FFFFFF#000000##FFFFFF
##2547801.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C82
Deuteranopia (green-blind)
#1C447F
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254780;
/* rgb */ color: rgb(37, 71, 128);
/* oklch */ color: oklch(40.4% 0.104 260.1);
Tailwind
colors: {
  custom: {
    50: '#6b79a5',
    500: '#254780',
    950: '#000000',
  },
}
SCSS
$custom: #254780;
$custom-light: #6b79a5;
$custom-dark: #000000;
JSON
{
  "hex": "#254780",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 128
  },
  "hsl": {
    "h": 217.582,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40369,
    "c": 0.104,
    "h": 260.1
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#254780
secondary
#B18D50
accent
#A749DE
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254780

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

Preview Lab → · Contrast checker → · Palette generator →

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