#254FB1#254FB1

#254FB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.163 H 263.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#254FB1
RGBrgb(37, 79, 177)
HSLhsl(222, 65%, 42%)
HSVhsv(222, 79%, 69%)
CMYKcmyk(79.1%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.29, 21.86, -56.30)
CIE-LCHlch(36.29, 60.39, 291.23°)
OKLaboklab(45.85% -0.018 -0.1624)
OKLCHoklch(45.85% 0.163 263.7)
XYZxyz(11.4919, 9.1583, 42.7485)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB1 #B18725
analogous
#2595B1 #254FB1 #4125B1
triadic
#254FB1 #B1254F #4FB125
tetradic
#254FB1 #B12595 #B18725 #25B141
square
#254FB1 #B12595 #B18725 #25B141
split-complementary
#254FB1 #B14125 #95B125
monochromatic
#10224C #1A387E #254FB1 #3D6BD6 #6F91E1

Accessibility & contrast

On white

7.42
#254FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254FB1
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB1#FFFFFF#000000##FFFFFF
##254FB11.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #254fb1;
/* rgb */ color: rgb(37, 79, 177);
/* oklch */ color: oklch(45.9% 0.163 263.7);
Tailwind
colors: {
  custom: {
    50: '#767fc9',
    500: '#254fb1',
    950: '#000000',
  },
}
SCSS
$custom: #254fb1;
$custom-light: #767fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb1",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 222,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.1634,
    "h": 263.7
  },
  "luminance": 0.0916
}

Semantic roles & 50–950 ramp

primary
#254FB1
secondary
#C8AC6A
accent
#B63FE8
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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