#254FA5#254FA5

#254FA5 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.147 H 262.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#254FA5
RGBrgb(37, 79, 165)
HSLhsl(220, 63%, 40%)
HSVhsv(220, 78%, 65%)
CMYKcmyk(77.6%, 52.1%, 0%, 35.3%)
CIE-LABlab(35.40, 17.19, -50.59)
CIE-LCHlch(35.40, 53.43, 288.77°)
OKLaboklab(44.9% -0.0192 -0.1456)
OKLCHoklch(44.9% 0.147 262.5)
XYZxyz(10.3480, 8.7007, 36.7240)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA5 #A57B25
analogous
#258FA5 #254FA5 #3B25A5
triadic
#254FA5 #A5254F #4FA525
tetradic
#254FA5 #A5258F #A57B25 #25A53B
square
#254FA5 #A5258F #A57B25 #25A53B
split-complementary
#254FA5 #A53B25 #8FA525
monochromatic
#0F1F41 #1A3773 #254FA5 #3569D2 #678EDD

Accessibility & contrast

On white

7.66
#254FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#254FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA5#FFFFFF#000000##FFFFFF
##254FA51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1659A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254fa5;
/* rgb */ color: rgb(37, 79, 165);
/* oklch */ color: oklch(44.9% 0.147 262.5);
Tailwind
colors: {
  custom: {
    50: '#737fc0',
    500: '#254fa5',
    950: '#000000',
  },
}
SCSS
$custom: #254fa5;
$custom-light: #737fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa5",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 220.313,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.14689,
    "h": 262.5
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

primary
#254FA5
secondary
#C3A363
accent
#B041E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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