#254FB6#254FB6

#254FB6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.170 H 264.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#254FB6
RGBrgb(37, 79, 182)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 80%, 71%)
CMYKcmyk(79.7%, 56.6%, 0%, 28.6%)
CIE-LABlab(36.67, 23.80, -58.63)
CIE-LCHlch(36.67, 63.27, 292.09°)
OKLaboklab(46.26% -0.0176 -0.1693)
OKLCHoklch(46.26% 0.17 264.1)
XYZxyz(11.9994, 9.3613, 45.4214)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FB6 #B68C25
analogous
#2597B6 #254FB6 #4425B6
triadic
#254FB6 #B6254F #4FB625
tetradic
#254FB6 #B62597 #B68C25 #25B644
square
#254FB6 #B62597 #B68C25 #25B644
split-complementary
#254FB6 #B64425 #97B625
monochromatic
#102350 #1B3983 #254FB6 #406CD8 #7393E3

Accessibility & contrast

On white

7.31
#254FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#254FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FB6
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FB6#FFFFFF#000000##FFFFFF
##254FB61.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #254fb6;
/* rgb */ color: rgb(37, 79, 182);
/* oklch */ color: oklch(46.3% 0.170 264.1);
Tailwind
colors: {
  custom: {
    50: '#777fcd',
    500: '#254fb6',
    950: '#000000',
  },
}
SCSS
$custom: #254fb6;
$custom-light: #777fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#254fb6",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 182
  },
  "hsl": {
    "h": 222.621,
    "s": 66.21,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.17018,
    "h": 264.1
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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