#254BA7#254BA7

#254BA7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.155 H 264.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#254BA7
RGBrgb(37, 75, 167)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.8%, 55.1%, 0%, 34.5%)
CIE-LABlab(34.43, 20.66, -53.37)
CIE-LCHlch(34.43, 57.23, 291.16°)
OKLaboklab(44.21% -0.0159 -0.1539)
OKLCHoklch(44.21% 0.155 264.1)
XYZxyz(10.2516, 8.2143, 37.5970)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA7 #A78125
analogous
#258CA7 #254BA7 #4025A7
triadic
#254BA7 #A7254B #4BA725
tetradic
#254BA7 #A7258C #A78125 #25A740
square
#254BA7 #A7258C #A78125 #25A740
split-complementary
#254BA7 #A74025 #8CA725
monochromatic
#0F1E43 #1A3475 #254BA7 #3764D3 #698BDE

Accessibility & contrast

On white

7.95
#254BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA7#FFFFFF#000000##FFFFFF
##254BA71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ba7;
/* rgb */ color: rgb(37, 75, 167);
/* oklch */ color: oklch(44.2% 0.155 264.1);
Tailwind
colors: {
  custom: {
    50: '#747cc2',
    500: '#254ba7',
    950: '#000000',
  },
}
SCSS
$custom: #254ba7;
$custom-light: #747cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba7",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 222.462,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.44208,
    "c": 0.1547,
    "h": 264.1
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#254BA7
secondary
#C4A864
accent
#B641E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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