#254789#254789

#254789 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.117 H 262.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#254789
RGBrgb(37, 71, 137)
HSLhsl(220, 57%, 34%)
HSVhsv(220, 73%, 54%)
CMYKcmyk(73%, 48.2%, 0%, 46.3%)
CIE-LABlab(31.13, 11.61, -40.49)
CIE-LCHlch(31.13, 42.13, 286.00°)
OKLaboklab(41.01% -0.0162 -0.1161)
OKLCHoklch(41.01% 0.117 262.1)
XYZxyz(7.5299, 6.7051, 24.5594)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254789 #896725
analogous
#257989 #254789 #352589
triadic
#254789 #892547 #478925
tetradic
#254789 #892579 #896725 #258935
square
#254789 #892579 #896725 #258935
split-complementary
#254789 #893525 #798925
monochromatic
#0B1529 #182E59 #254789 #3260B9 #5781D2

Accessibility & contrast

On white

8.97
#254789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#254789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254789
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254789#FFFFFF#000000##FFFFFF
##2547891.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244E8B
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254789;
/* rgb */ color: rgb(37, 71, 137);
/* oklch */ color: oklch(41.0% 0.117 262.1);
Tailwind
colors: {
  custom: {
    50: '#6d79ac',
    500: '#254789',
    950: '#000000',
  },
}
SCSS
$custom: #254789;
$custom-light: #6d79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#254789",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 219.6,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.11718,
    "h": 262.1
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#254789
secondary
#B69554
accent
#AC47E1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254789

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

Preview Lab → · Contrast checker → · Palette generator →

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