#254BA5#254BA5

#254BA5 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.152 H 263.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#254BA5
RGBrgb(37, 75, 165)
HSLhsl(222, 63%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.6%, 54.5%, 0%, 35.3%)
CIE-LABlab(34.27, 19.88, -52.42)
CIE-LCHlch(34.27, 56.06, 290.77°)
OKLaboklab(44.05% -0.016 -0.1511)
OKLCHoklch(44.05% 0.152 263.9)
XYZxyz(10.0681, 8.1409, 36.6307)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA5 #A57F25
analogous
#258BA5 #254BA5 #3F25A5
triadic
#254BA5 #A5254B #4BA525
tetradic
#254BA5 #A5258B #A57F25 #25A53F
square
#254BA5 #A5258B #A57F25 #25A53F
split-complementary
#254BA5 #A53F25 #8BA525
monochromatic
#0F1E41 #1A3473 #254BA5 #3564D2 #678ADD

Accessibility & contrast

On white

7.99
#254BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA5
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA5#FFFFFF#000000##FFFFFF
##254BA51.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ba5;
/* rgb */ color: rgb(37, 75, 165);
/* oklch */ color: oklch(44.0% 0.152 263.9);
Tailwind
colors: {
  custom: {
    50: '#737cc0',
    500: '#254ba5',
    950: '#000000',
  },
}
SCSS
$custom: #254ba5;
$custom-light: #737cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba5",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 222.188,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44046,
    "c": 0.15193,
    "h": 263.9
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#254BA5
secondary
#C3A663
accent
#B541E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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