#254F9C#254F9C

#254F9C is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.134 H 261.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#254F9C
RGBrgb(37, 79, 156)
HSLhsl(219, 62%, 38%)
HSVhsv(219, 76%, 61%)
CMYKcmyk(76.3%, 49.4%, 0%, 38.8%)
CIE-LABlab(34.77, 13.67, -46.21)
CIE-LCHlch(34.77, 48.19, 286.48°)
OKLaboklab(44.22% -0.0204 -0.1327)
OKLCHoklch(44.22% 0.134 261.3)
XYZxyz(9.5575, 8.3845, 32.5607)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F9C #9C7225
analogous
#258A9C #254F9C #37259C
triadic
#254F9C #9C254F #4F9C25
tetradic
#254F9C #9C258A #9C7225 #259C37
square
#254F9C #9C258A #9C7225 #259C37
split-complementary
#254F9C #9C3725 #8A9C25
monochromatic
#0E1D39 #19366B #254F9C #3168CD #628CDA

Accessibility & contrast

On white

7.84
#254F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#254F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F9C
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F9C#FFFFFF#000000##FFFFFF
##254F9C1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23589F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254f9c;
/* rgb */ color: rgb(37, 79, 156);
/* oklch */ color: oklch(44.2% 0.134 261.3);
Tailwind
colors: {
  custom: {
    50: '#717fba',
    500: '#254f9c',
    950: '#000000',
  },
}
SCSS
$custom: #254f9c;
$custom-light: #717fba;
$custom-dark: #000000;
JSON
{
  "hex": "#254f9c",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 156
  },
  "hsl": {
    "h": 218.824,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44219,
    "c": 0.13428,
    "h": 261.3
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#254F9C
secondary
#BF9D5E
accent
#AC43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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