#254EA9#254EA9

#254EA9 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.154 H 263.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#254EA9
RGBrgb(37, 78, 169)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 66%)
CMYKcmyk(78.1%, 53.8%, 0%, 33.7%)
CIE-LABlab(35.41, 19.42, -52.97)
CIE-LCHlch(35.41, 56.42, 290.14°)
OKLaboklab(45% -0.018 -0.1526)
OKLCHoklch(45% 0.154 263.3)
XYZxyz(10.6462, 8.7054, 38.6476)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA9 #A98025
analogous
#2590A9 #254EA9 #3E25A9
triadic
#254EA9 #A9254E #4EA925
tetradic
#254EA9 #A92590 #A98025 #25A93E
square
#254EA9 #A92590 #A98025 #25A93E
split-complementary
#254EA9 #A93E25 #90A925
monochromatic
#0F2045 #1A3777 #254EA9 #3868D3 #6A8EDE

Accessibility & contrast

On white

7.66
#254EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#254EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA9
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA9#FFFFFF#000000##FFFFFF
##254EA91.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065AAC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ea9;
/* rgb */ color: rgb(37, 78, 169);
/* oklch */ color: oklch(45.0% 0.154 263.3);
Tailwind
colors: {
  custom: {
    50: '#747fc3',
    500: '#254ea9',
    950: '#000000',
  },
}
SCSS
$custom: #254ea9;
$custom-light: #747fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea9",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 221.364,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45001,
    "c": 0.15369,
    "h": 263.3
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#254EA9
secondary
#C4A765
accent
#B341E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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