#254FA4#254FA4

#254FA4 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.145 H 262.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#254FA4
RGBrgb(37, 79, 164)
HSLhsl(220, 63%, 39%)
HSVhsv(220, 77%, 64%)
CMYKcmyk(77.4%, 51.8%, 0%, 35.7%)
CIE-LABlab(35.33, 16.80, -50.11)
CIE-LCHlch(35.33, 52.85, 288.53°)
OKLaboklab(44.83% -0.0193 -0.1442)
OKLCHoklch(44.83% 0.146 262.4)
XYZxyz(10.2574, 8.6644, 36.2466)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA4 #A47A25
analogous
#258FA4 #254FA4 #3A25A4
triadic
#254FA4 #A4254F #4FA425
tetradic
#254FA4 #A4258F #A47A25 #25A43A
square
#254FA4 #A4258F #A47A25 #25A43A
split-complementary
#254FA4 #A43A25 #8FA425
monochromatic
#0E1F40 #1A3772 #254FA4 #3569D1 #678EDD

Accessibility & contrast

On white

7.68
#254FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#254FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA4#FFFFFF#000000##FFFFFF
##254FA41.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1859A7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254fa4;
/* rgb */ color: rgb(37, 79, 164);
/* oklch */ color: oklch(44.8% 0.145 262.4);
Tailwind
colors: {
  custom: {
    50: '#737fc0',
    500: '#254fa4',
    950: '#000000',
  },
}
SCSS
$custom: #254fa4;
$custom-light: #737fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa4",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 220.157,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44825,
    "c": 0.1455,
    "h": 262.4
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#254FA4
secondary
#C2A362
accent
#B042E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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