#254C8F#254C8F

#254C8F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.120 H 260.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#254C8F
RGBrgb(37, 76, 143)
HSLhsl(218, 59%, 35%)
HSVhsv(218, 74%, 56%)
CMYKcmyk(74.1%, 46.9%, 0%, 43.9%)
CIE-LABlab(33.02, 10.58, -41.14)
CIE-LCHlch(33.02, 42.48, 284.43°)
OKLaboklab(42.59% -0.0198 -0.1179)
OKLCHoklch(42.59% 0.12 260.5)
XYZxyz(8.3035, 7.5445, 26.9999)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C8F #8F6825
analogous
#25818F #254C8F #33258F
triadic
#254C8F #8F254C #4C8F25
tetradic
#254C8F #8F2581 #8F6825 #258F33
square
#254C8F #8F2581 #8F6825 #258F33
split-complementary
#254C8F #8F3325 #818F25
monochromatic
#0C182E #18325E #254C8F #3266C0 #5A87D4

Accessibility & contrast

On white

8.37
#254C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#254C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C8F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C8F#FFFFFF#000000##FFFFFF
##254C8F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#13498E
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254c8f;
/* rgb */ color: rgb(37, 76, 143);
/* oklch */ color: oklch(42.6% 0.120 260.5);
Tailwind
colors: {
  custom: {
    50: '#6e7db0',
    500: '#254c8f',
    950: '#000000',
  },
}
SCSS
$custom: #254c8f;
$custom-light: #6e7db0;
$custom-dark: #000000;
JSON
{
  "hex": "#254c8f",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 217.925,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42591,
    "c": 0.11954,
    "h": 260.5
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#254C8F
secondary
#B99557
accent
#A946E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254C8F

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

Preview Lab → · Contrast checker → · Palette generator →

#254C8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva