#254EB6#254EB6

#254EB6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.171 H 264.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#254EB6
RGBrgb(37, 78, 182)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 80%, 71%)
CMYKcmyk(79.7%, 57.1%, 0%, 28.6%)
CIE-LABlab(36.40, 24.46, -59.07)
CIE-LCHlch(36.40, 63.93, 292.50°)
OKLaboklab(46.06% -0.017 -0.1706)
OKLCHoklch(46.06% 0.171 264.3)
XYZxyz(11.9278, 9.2181, 45.3975)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EB6 #B68D25
analogous
#2597B6 #254EB6 #4425B6
triadic
#254EB6 #B6254E #4EB625
tetradic
#254EB6 #B62597 #B68D25 #25B644
square
#254EB6 #B62597 #B68D25 #25B644
split-complementary
#254EB6 #B64425 #97B625
monochromatic
#102250 #1B3883 #254EB6 #406BD8 #7392E3

Accessibility & contrast

On white

7.38
#254EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#254EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EB6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EB6#FFFFFF#000000##FFFFFF
##254EB61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #254eb6;
/* rgb */ color: rgb(37, 78, 182);
/* oklch */ color: oklch(46.1% 0.171 264.3);
Tailwind
colors: {
  custom: {
    50: '#777fcd',
    500: '#254eb6',
    950: '#000000',
  },
}
SCSS
$custom: #254eb6;
$custom-light: #777fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#254eb6",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 223.034,
    "s": 66.21,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46061,
    "c": 0.17141,
    "h": 264.3
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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