#254DB4#254DB4

#254DB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.170 H 264.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#254DB4
RGBrgb(37, 77, 180)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 79%, 71%)
CMYKcmyk(79.4%, 57.2%, 0%, 29.4%)
CIE-LABlab(35.97, 24.36, -58.58)
CIE-LCHlch(35.97, 63.44, 292.58°)
OKLaboklab(45.69% -0.0164 -0.1692)
OKLCHoklch(45.69% 0.17 264.5)
XYZxyz(11.6521, 8.9950, 44.2933)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DB4 #B48C25
analogous
#2594B4 #254DB4 #4525B4
triadic
#254DB4 #B4254D #4DB425
tetradic
#254DB4 #B42594 #B48C25 #25B445
square
#254DB4 #B42594 #B48C25 #25B445
split-complementary
#254DB4 #B44525 #94B425
monochromatic
#10224E #1B3781 #254DB4 #3F69D7 #7191E2

Accessibility & contrast

On white

7.50
#254DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#254DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DB4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DB4#FFFFFF#000000##FFFFFF
##254DB41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254db4;
/* rgb */ color: rgb(37, 77, 180);
/* oklch */ color: oklch(45.7% 0.170 264.5);
Tailwind
colors: {
  custom: {
    50: '#777ecb',
    500: '#254db4',
    950: '#000000',
  },
}
SCSS
$custom: #254db4;
$custom-light: #777ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#254db4",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 223.217,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45691,
    "c": 0.16995,
    "h": 264.5
  },
  "luminance": 0.08996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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