#254CB4#254CB4

#254CB4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.171 H 264.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#254CB4
RGBrgb(37, 76, 180)
HSLhsl(224, 66%, 43%)
HSVhsv(224, 79%, 71%)
CMYKcmyk(79.4%, 57.8%, 0%, 29.4%)
CIE-LABlab(35.71, 25.02, -59.02)
CIE-LCHlch(35.71, 64.10, 292.98°)
OKLaboklab(45.49% -0.0157 -0.1705)
OKLCHoklch(45.49% 0.171 264.7)
XYZxyz(11.5827, 8.8561, 44.2701)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CB4 #B48D25
analogous
#2594B4 #254CB4 #4525B4
triadic
#254CB4 #B4254C #4CB425
tetradic
#254CB4 #B42594 #B48D25 #25B445
square
#254CB4 #B42594 #B48D25 #25B445
split-complementary
#254CB4 #B44525 #94B425
monochromatic
#10214E #1B3781 #254CB4 #3F68D7 #7190E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##254CB4#FFFFFF#000000##FFFFFF
##254CB41.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)
#005BB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254cb4;
/* rgb */ color: rgb(37, 76, 180);
/* oklch */ color: oklch(45.5% 0.171 264.7);
Tailwind
colors: {
  custom: {
    50: '#777dcb',
    500: '#254cb4',
    950: '#000000',
  },
}
SCSS
$custom: #254cb4;
$custom-light: #777dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#254cb4",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 223.636,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45489,
    "c": 0.17118,
    "h": 264.7
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#254CB4
secondary
#C9AF6C
accent
#BB3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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