#254C9F#254C9F

#254C9F is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.142 H 263.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#254C9F
RGBrgb(37, 76, 159)
HSLhsl(221, 62%, 38%)
HSVhsv(221, 77%, 62%)
CMYKcmyk(76.7%, 52.2%, 0%, 37.6%)
CIE-LABlab(34.12, 16.86, -49.07)
CIE-LCHlch(34.12, 51.89, 288.96°)
OKLaboklab(43.79% -0.0175 -0.1412)
OKLCHoklch(43.79% 0.142 263)
XYZxyz(9.6032, 8.0643, 33.8446)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C9F #9F7825
analogous
#25899F #254C9F #3B259F
triadic
#254C9F #9F254C #4C9F25
tetradic
#254C9F #9F2589 #9F7825 #259F3B
square
#254C9F #9F2589 #9F7825 #259F3B
split-complementary
#254C9F #9F3B25 #899F25
monochromatic
#0E1D3C #19346D #254C9F #3264CF #648ADB

Accessibility & contrast

On white

8.04
#254C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C9F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C9F#FFFFFF#000000##FFFFFF
##254C9F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254c9f;
/* rgb */ color: rgb(37, 76, 159);
/* oklch */ color: oklch(43.8% 0.142 263.0);
Tailwind
colors: {
  custom: {
    50: '#727dbc',
    500: '#254c9f',
    950: '#000000',
  },
}
SCSS
$custom: #254c9f;
$custom-light: #727dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#254c9f",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 159
  },
  "hsl": {
    "h": 220.82,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43786,
    "c": 0.14229,
    "h": 263
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#254C9F
secondary
#C0A15F
accent
#B142E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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