#254FA9#254FA9

#254FA9 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.152 H 262.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#254FA9
RGBrgb(37, 79, 169)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 66%)
CMYKcmyk(78.1%, 53.3%, 0%, 33.7%)
CIE-LABlab(35.69, 18.75, -52.51)
CIE-LCHlch(35.69, 55.76, 289.65°)
OKLaboklab(45.21% -0.0187 -0.1513)
OKLCHoklch(45.21% 0.152 262.9)
XYZxyz(10.7178, 8.8486, 38.6715)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA9 #A97F25
analogous
#2591A9 #254FA9 #3D25A9
triadic
#254FA9 #A9254F #4FA925
tetradic
#254FA9 #A92591 #A97F25 #25A93D
square
#254FA9 #A92591 #A97F25 #25A93D
split-complementary
#254FA9 #A93D25 #91A925
monochromatic
#0F2045 #1A3877 #254FA9 #3869D3 #6A8FDE

Accessibility & contrast

On white

7.58
#254FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#254FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA9#FFFFFF#000000##FFFFFF
##254FA91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254fa9;
/* rgb */ color: rgb(37, 79, 169);
/* oklch */ color: oklch(45.2% 0.152 262.9);
Tailwind
colors: {
  custom: {
    50: '#747fc3',
    500: '#254fa9',
    950: '#000000',
  },
}
SCSS
$custom: #254fa9;
$custom-light: #747fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa9",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 220.909,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45214,
    "c": 0.15243,
    "h": 262.9
  },
  "luminance": 0.0885
}

Semantic roles & 50–950 ramp

primary
#254FA9
secondary
#C4A665
accent
#B241E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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