#254FA6#254FA6

#254FA6 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.148 H 262.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#254FA6
RGBrgb(37, 79, 166)
HSLhsl(220, 64%, 40%)
HSVhsv(220, 78%, 65%)
CMYKcmyk(77.7%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.47, 17.58, -51.08)
CIE-LCHlch(35.47, 54.02, 289.00°)
OKLaboklab(44.98% -0.019 -0.147)
OKLCHoklch(44.98% 0.148 262.6)
XYZxyz(10.4394, 8.7373, 37.2053)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA6 #A67C25
analogous
#2590A6 #254FA6 #3B25A6
triadic
#254FA6 #A6254F #4FA625
tetradic
#254FA6 #A62590 #A67C25 #25A63B
square
#254FA6 #A62590 #A67C25 #25A63B
split-complementary
#254FA6 #A63B25 #90A625
monochromatic
#0F1F42 #1A3774 #254FA6 #3669D2 #688EDD

Accessibility & contrast

On white

7.64
#254FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#254FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA6
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA6#FFFFFF#000000##FFFFFF
##254FA61.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254fa6;
/* rgb */ color: rgb(37, 79, 166);
/* oklch */ color: oklch(45.0% 0.148 262.6);
Tailwind
colors: {
  custom: {
    50: '#737fc1',
    500: '#254fa6',
    950: '#000000',
  },
}
SCSS
$custom: #254fa6;
$custom-light: #737fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa6",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 220.465,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44979,
    "c": 0.14828,
    "h": 262.6
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#254FA6
secondary
#C3A464
accent
#B141E7
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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