#254FB4#254FB4

#254FB4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.167 H 263.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#254FB4
RGBrgb(37, 79, 180)
HSLhsl(222, 66%, 43%)
HSVhsv(222, 79%, 71%)
CMYKcmyk(79.4%, 56.1%, 0%, 29.4%)
CIE-LABlab(36.52, 23.03, -57.70)
CIE-LCHlch(36.52, 62.12, 291.76°)
OKLaboklab(46.1% -0.0178 -0.1665)
OKLCHoklch(46.1% 0.167 263.9)
XYZxyz(11.7942, 9.2792, 44.3406)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB4 #B48A25
analogous
#2596B4 #254FB4 #4325B4
triadic
#254FB4 #B4254F #4FB425
tetradic
#254FB4 #B42596 #B48A25 #25B443
square
#254FB4 #B42596 #B48A25 #25B443
split-complementary
#254FB4 #B44325 #96B425
monochromatic
#10224E #1B3981 #254FB4 #3F6CD7 #7193E2

Accessibility & contrast

On white

7.35
#254FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254FB4
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB4#FFFFFF#000000##FFFFFF
##254FB41.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #254fb4;
/* rgb */ color: rgb(37, 79, 180);
/* oklch */ color: oklch(46.1% 0.167 263.9);
Tailwind
colors: {
  custom: {
    50: '#777fcb',
    500: '#254fb4',
    950: '#000000',
  },
}
SCSS
$custom: #254fb4;
$custom-light: #777fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb4",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 222.378,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.16747,
    "h": 263.9
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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