#254C94#254C94

#254C94 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.127 H 261.4°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#254C94
RGBrgb(37, 76, 148)
HSLhsl(219, 60%, 36%)
HSVhsv(219, 75%, 58%)
CMYKcmyk(75%, 48.6%, 0%, 42%)
CIE-LABlab(33.35, 12.55, -43.65)
CIE-LCHlch(33.35, 45.42, 286.03°)
OKLaboklab(42.95% -0.019 -0.1253)
OKLCHoklch(42.95% 0.127 261.4)
XYZxyz(8.6908, 7.6994, 29.0393)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C94 #946D25
analogous
#258494 #254C94 #362594
triadic
#254C94 #94254C #4C9425
tetradic
#254C94 #942584 #946D25 #259436
square
#254C94 #942584 #946D25 #259436
split-complementary
#254C94 #943625 #849425
monochromatic
#0D1A32 #193363 #254C94 #3165C5 #5D88D6

Accessibility & contrast

On white

8.27
#254C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#254C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C94
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C94#FFFFFF#000000##FFFFFF
##254C941.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255497
Deuteranopia (green-blind)
#054A93
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254c94;
/* rgb */ color: rgb(37, 76, 148);
/* oklch */ color: oklch(43.0% 0.127 261.4);
Tailwind
colors: {
  custom: {
    50: '#6f7db4',
    500: '#254c94',
    950: '#000000',
  },
}
SCSS
$custom: #254c94;
$custom-light: #6f7db4;
$custom-dark: #000000;
JSON
{
  "hex": "#254c94",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 148
  },
  "hsl": {
    "h": 218.919,
    "s": 60,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.1267,
    "h": 261.4
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#254C94
secondary
#BB9959
accent
#AB45E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254C94

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

Preview Lab → · Contrast checker → · Palette generator →

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