#254EB4#254EB4

#254EB4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.169 H 264.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#254EB4
RGBrgb(37, 78, 180)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 79%, 71%)
CMYKcmyk(79.4%, 56.7%, 0%, 29.4%)
CIE-LABlab(36.24, 23.69, -58.14)
CIE-LCHlch(36.24, 62.78, 292.17°)
OKLaboklab(45.89% -0.0171 -0.1678)
OKLCHoklch(45.89% 0.169 264.2)
XYZxyz(11.7226, 9.1360, 44.3168)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EB4 #B48B25
analogous
#2596B4 #254EB4 #4325B4
triadic
#254EB4 #B4254E #4EB425
tetradic
#254EB4 #B42596 #B48B25 #25B443
square
#254EB4 #B42596 #B48B25 #25B443
split-complementary
#254EB4 #B44325 #96B425
monochromatic
#10224E #1B3881 #254EB4 #3F6BD7 #7192E2

Accessibility & contrast

On white

7.43
#254EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#254EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EB4
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EB4#FFFFFF#000000##FFFFFF
##254EB41.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #254eb4;
/* rgb */ color: rgb(37, 78, 180);
/* oklch */ color: oklch(45.9% 0.169 264.2);
Tailwind
colors: {
  custom: {
    50: '#777fcb',
    500: '#254eb4',
    950: '#000000',
  },
}
SCSS
$custom: #254eb4;
$custom-light: #777fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#254eb4",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 222.797,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45894,
    "c": 0.16872,
    "h": 264.2
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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