#254FA8#254FA8

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

Color values

HEX#254FA8
RGBrgb(37, 79, 168)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 66%)
CMYKcmyk(78%, 53%, 0%, 34.1%)
CIE-LABlab(35.62, 18.36, -52.04)
CIE-LCHlch(35.62, 55.18, 289.44°)
OKLaboklab(45.14% -0.0188 -0.1499)
OKLCHoklch(45.14% 0.151 262.8)
XYZxyz(10.6243, 8.8112, 38.1790)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA8 #A87E25
analogous
#2591A8 #254FA8 #3C25A8
triadic
#254FA8 #A8254F #4FA825
tetradic
#254FA8 #A82591 #A87E25 #25A83C
square
#254FA8 #A82591 #A87E25 #25A83C
split-complementary
#254FA8 #A83C25 #91A825
monochromatic
#0F2044 #1A3776 #254FA8 #3769D3 #698FDE

Accessibility & contrast

On white

7.60
#254FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#254FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA8
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA8#FFFFFF#000000##FFFFFF
##254FA81.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254fa8;
/* rgb */ color: rgb(37, 79, 168);
/* oklch */ color: oklch(45.1% 0.151 262.8);
Tailwind
colors: {
  custom: {
    50: '#747fc2',
    500: '#254fa8',
    950: '#000000',
  },
}
SCSS
$custom: #254fa8;
$custom-light: #747fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa8",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 220.763,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45135,
    "c": 0.15106,
    "h": 262.8
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#254FA8
secondary
#C4A665
accent
#B241E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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