#254C8E#254C8E

#254C8E is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.118 H 260.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#254C8E
RGBrgb(37, 76, 142)
HSLhsl(218, 59%, 35%)
HSVhsv(218, 74%, 56%)
CMYKcmyk(73.9%, 46.5%, 0%, 44.3%)
CIE-LABlab(32.95, 10.19, -40.63)
CIE-LCHlch(32.95, 41.89, 284.08°)
OKLaboklab(42.52% -0.02 -0.1164)
OKLCHoklch(42.52% 0.118 260.2)
XYZxyz(8.2281, 7.5143, 26.6027)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C8E #8E6725
analogous
#25818E #254C8E #32258E
triadic
#254C8E #8E254C #4C8E25
tetradic
#254C8E #8E2581 #8E6725 #258E32
square
#254C8E #8E2581 #8E6725 #258E32
split-complementary
#254C8E #8E3225 #818E25
monochromatic
#0C182D #18325D #254C8E #3266BF #5A87D4

Accessibility & contrast

On white

8.39
#254C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#254C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C8E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C8E#FFFFFF#000000##FFFFFF
##254C8E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5390
Deuteranopia (green-blind)
#15498D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254c8e;
/* rgb */ color: rgb(37, 76, 142);
/* oklch */ color: oklch(42.5% 0.118 260.2);
Tailwind
colors: {
  custom: {
    50: '#6e7daf',
    500: '#254c8e',
    950: '#000000',
  },
}
SCSS
$custom: #254c8e;
$custom-light: #6e7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#254c8e",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 217.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4252,
    "c": 0.1181,
    "h": 260.2
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#254C8E
secondary
#B99456
accent
#A846E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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