#254FB3#254FB3

#254FB3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.166 H 263.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#254FB3
RGBrgb(37, 79, 179)
HSLhsl(222, 66%, 42%)
HSVhsv(222, 79%, 70%)
CMYKcmyk(79.3%, 55.9%, 0%, 29.8%)
CIE-LABlab(36.44, 22.64, -57.23)
CIE-LCHlch(36.44, 61.55, 291.58°)
OKLaboklab(46.02% -0.0178 -0.1652)
OKLCHoklch(46.02% 0.166 263.8)
XYZxyz(11.6927, 9.2386, 43.8061)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB3 #B38925
analogous
#2596B3 #254FB3 #4225B3
triadic
#254FB3 #B3254F #4FB325
tetradic
#254FB3 #B32596 #B38925 #25B342
square
#254FB3 #B32596 #B38925 #25B342
split-complementary
#254FB3 #B34225 #96B325
monochromatic
#10224E #1B3980 #254FB3 #3E6BD7 #7192E2

Accessibility & contrast

On white

7.37
#254FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#254FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FB3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB3#FFFFFF#000000##FFFFFF
##254FB31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #254fb3;
/* rgb */ color: rgb(37, 79, 179);
/* oklch */ color: oklch(46.0% 0.166 263.8);
Tailwind
colors: {
  custom: {
    50: '#767fca',
    500: '#254fb3',
    950: '#000000',
  },
}
SCSS
$custom: #254fb3;
$custom-light: #767fca;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb3",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 179
  },
  "hsl": {
    "h": 222.254,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46017,
    "c": 0.16612,
    "h": 263.8
  },
  "luminance": 0.0924
}

Semantic roles & 50–950 ramp

primary
#254FB3
secondary
#C8AD6B
accent
#B73FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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