#254C95#254C95

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

Color values

HEX#254C95
RGBrgb(37, 76, 149)
HSLhsl(219, 60%, 36%)
HSVhsv(219, 75%, 58%)
CMYKcmyk(75.2%, 49%, 0%, 41.6%)
CIE-LABlab(33.42, 12.94, -44.15)
CIE-LCHlch(33.42, 46.01, 286.33°)
OKLaboklab(43.03% -0.0188 -0.1267)
OKLCHoklch(43.03% 0.128 261.6)
XYZxyz(8.7703, 7.7312, 29.4580)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C95 #956E25
analogous
#258495 #254C95 #362595
triadic
#254C95 #95254C #4C9525
tetradic
#254C95 #952584 #956E25 #259536
square
#254C95 #952584 #956E25 #259536
split-complementary
#254C95 #953625 #849525
monochromatic
#0D1A33 #193364 #254C95 #3165C6 #5E88D7

Accessibility & contrast

On white

8.25
#254C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C95
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C95#FFFFFF#000000##FFFFFF
##254C951.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245498
Deuteranopia (green-blind)
#024A94
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254c95;
/* rgb */ color: rgb(37, 76, 149);
/* oklch */ color: oklch(43.0% 0.128 261.6);
Tailwind
colors: {
  custom: {
    50: '#6f7db5',
    500: '#254c95',
    950: '#000000',
  },
}
SCSS
$custom: #254c95;
$custom-light: #6f7db5;
$custom-dark: #000000;
JSON
{
  "hex": "#254c95",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 149
  },
  "hsl": {
    "h": 219.107,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43028,
    "c": 0.12813,
    "h": 261.6
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#254C95
secondary
#BC9A5A
accent
#AC44E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254C95

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

Preview Lab → · Contrast checker → · Palette generator →

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