#254FA7#254FA7

#254FA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.150 H 262.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#254FA7
RGBrgb(37, 79, 167)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 65%)
CMYKcmyk(77.8%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.55, 17.97, -51.56)
CIE-LCHlch(35.55, 54.60, 289.22°)
OKLaboklab(45.06% -0.0189 -0.1485)
OKLCHoklch(45.06% 0.15 262.7)
XYZxyz(10.5315, 8.7741, 37.6902)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA7 #A77D25
analogous
#2590A7 #254FA7 #3C25A7
triadic
#254FA7 #A7254F #4FA725
tetradic
#254FA7 #A72590 #A77D25 #25A73C
square
#254FA7 #A72590 #A77D25 #25A73C
split-complementary
#254FA7 #A73C25 #90A725
monochromatic
#0F2043 #1A3775 #254FA7 #3769D3 #698FDE

Accessibility & contrast

On white

7.62
#254FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#254FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA7
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA7#FFFFFF#000000##FFFFFF
##254FA71.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125AAA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254fa7;
/* rgb */ color: rgb(37, 79, 167);
/* oklch */ color: oklch(45.1% 0.150 262.7);
Tailwind
colors: {
  custom: {
    50: '#747fc2',
    500: '#254fa7',
    950: '#000000',
  },
}
SCSS
$custom: #254fa7;
$custom-light: #747fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa7",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 220.615,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.45057,
    "c": 0.14967,
    "h": 262.7
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

primary
#254FA7
secondary
#C4A564
accent
#B141E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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