#254BAF#254BAF

#254BAF is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.166 H 264.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#254BAF
RGBrgb(37, 75, 175)
HSLhsl(223, 65%, 42%)
HSVhsv(223, 79%, 69%)
CMYKcmyk(78.9%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.04, 23.76, -57.14)
CIE-LCHlch(35.04, 61.88, 292.58°)
OKLaboklab(44.87% -0.0153 -0.165)
OKLCHoklch(44.87% 0.166 264.7)
XYZxyz(11.0141, 8.5193, 41.6130)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BAF #AF8925
analogous
#2590AF #254BAF #4425AF
triadic
#254BAF #AF254B #4BAF25
tetradic
#254BAF #AF2590 #AF8925 #25AF44
square
#254BAF #AF2590 #AF8925 #25AF44
split-complementary
#254BAF #AF4425 #90AF25
monochromatic
#10204A #1A357C #254BAF #3C66D6 #6E8EE0

Accessibility & contrast

On white

7.77
#254BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#254BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BAF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BAF#FFFFFF#000000##FFFFFF
##254BAF1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254baf;
/* rgb */ color: rgb(37, 75, 175);
/* oklch */ color: oklch(44.9% 0.166 264.7);
Tailwind
colors: {
  custom: {
    50: '#767cc8',
    500: '#254baf',
    950: '#000000',
  },
}
SCSS
$custom: #254baf;
$custom-light: #767cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#254baf",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 223.478,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44867,
    "c": 0.16566,
    "h": 264.7
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#254BAF
secondary
#C7AD69
accent
#BA40E8
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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