#254FB5#254FB5

#254FB5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.169 H 264.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#254FB5
RGBrgb(37, 79, 181)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 80%, 71%)
CMYKcmyk(79.6%, 56.4%, 0%, 29%)
CIE-LABlab(36.59, 23.41, -58.16)
CIE-LCHlch(36.59, 62.70, 291.93°)
OKLaboklab(46.18% -0.0177 -0.1679)
OKLCHoklch(46.18% 0.169 264)
XYZxyz(11.8965, 9.3201, 44.8791)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB5 #B58B25
analogous
#2597B5 #254FB5 #4325B5
triadic
#254FB5 #B5254F #4FB525
tetradic
#254FB5 #B52597 #B58B25 #25B543
square
#254FB5 #B52597 #B58B25 #25B543
split-complementary
#254FB5 #B54325 #97B525
monochromatic
#10234F #1B3982 #254FB5 #3F6CD8 #7293E2

Accessibility & contrast

On white

7.33
#254FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#254FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FB5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB5#FFFFFF#000000##FFFFFF
##254FB51.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #254fb5;
/* rgb */ color: rgb(37, 79, 181);
/* oklch */ color: oklch(46.2% 0.169 264.0);
Tailwind
colors: {
  custom: {
    50: '#777fcc',
    500: '#254fb5',
    950: '#000000',
  },
}
SCSS
$custom: #254fb5;
$custom-light: #777fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb5",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 222.5,
    "s": 66.055,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46181,
    "c": 0.16883,
    "h": 264
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#254FB5
secondary
#C9AE6D
accent
#B73FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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