#254F9F#254F9F

#254F9F is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.139 H 261.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#254F9F
RGBrgb(37, 79, 159)
HSLhsl(219, 62%, 38%)
HSVhsv(219, 77%, 62%)
CMYKcmyk(76.7%, 50.3%, 0%, 37.6%)
CIE-LABlab(34.98, 14.84, -47.68)
CIE-LCHlch(34.98, 49.94, 287.29°)
OKLaboklab(44.44% -0.0199 -0.1371)
OKLCHoklch(44.44% 0.139 261.7)
XYZxyz(9.8147, 8.4874, 33.9151)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F9F #9F7525
analogous
#258C9F #254F9F #38259F
triadic
#254F9F #9F254F #4F9F25
tetradic
#254F9F #9F258C #9F7525 #259F38
square
#254F9F #9F258C #9F7525 #259F38
split-complementary
#254F9F #9F3825 #8C9F25
monochromatic
#0E1E3C #19366D #254F9F #3268CF #648DDB

Accessibility & contrast

On white

7.78
#254F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#254F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F9F
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F9F#FFFFFF#000000##FFFFFF
##254F9F1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254f9f;
/* rgb */ color: rgb(37, 79, 159);
/* oklch */ color: oklch(44.4% 0.139 261.7);
Tailwind
colors: {
  custom: {
    50: '#727fbc',
    500: '#254f9f',
    950: '#000000',
  },
}
SCSS
$custom: #254f9f;
$custom-light: #727fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#254f9f",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 219.344,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44443,
    "c": 0.1385,
    "h": 261.7
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#254F9F
secondary
#C09F5F
accent
#AD42E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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