#254786#254786

#254786 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.113 H 261.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#254786
RGBrgb(37, 71, 134)
HSLhsl(219, 57%, 34%)
HSVhsv(219, 72%, 53%)
CMYKcmyk(72.4%, 47%, 0%, 47.5%)
CIE-LABlab(30.93, 10.44, -38.96)
CIE-LCHlch(30.93, 40.34, 285.00°)
OKLaboklab(40.79% -0.0167 -0.1116)
OKLCHoklch(40.79% 0.113 261.5)
XYZxyz(7.3177, 6.6203, 23.4418)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254786 #866425
analogous
#257786 #254786 #332586
triadic
#254786 #862547 #478625
tetradic
#254786 #862577 #866425 #258633
square
#254786 #862577 #866425 #258633
split-complementary
#254786 #863325 #778625
monochromatic
#0B1426 #182E56 #254786 #3260B6 #5580D0

Accessibility & contrast

On white

9.04
#254786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#254786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254786
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254786#FFFFFF#000000##FFFFFF
##2547861.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E88
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254786;
/* rgb */ color: rgb(37, 71, 134);
/* oklch */ color: oklch(40.8% 0.113 261.5);
Tailwind
colors: {
  custom: {
    50: '#6c79aa',
    500: '#254786',
    950: '#000000',
  },
}
SCSS
$custom: #254786;
$custom-light: #6c79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#254786",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 218.969,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40793,
    "c": 0.1128,
    "h": 261.5
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#254786
secondary
#B49252
accent
#AB48E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254786

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

Preview Lab → · Contrast checker → · Palette generator →

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