#254BAB#254BAB

#254BAB is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.160 H 264.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#254BAB
RGBrgb(37, 75, 171)
HSLhsl(223, 64%, 41%)
HSVhsv(223, 78%, 67%)
CMYKcmyk(78.4%, 56.1%, 0%, 32.9%)
CIE-LABlab(34.73, 22.21, -55.26)
CIE-LCHlch(34.73, 59.56, 291.89°)
OKLaboklab(44.53% -0.0156 -0.1594)
OKLCHoklch(44.53% 0.16 264.4)
XYZxyz(10.6271, 8.3645, 39.5746)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BAB #AB8525
analogous
#258EAB #254BAB #4225AB
triadic
#254BAB #AB254B #4BAB25
tetradic
#254BAB #AB258E #AB8525 #25AB42
square
#254BAB #AB258E #AB8525 #25AB42
split-complementary
#254BAB #AB4225 #8EAB25
monochromatic
#0F1F46 #1A3579 #254BAB #3965D4 #6B8CDF

Accessibility & contrast

On white

7.86
#254BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#254BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BAB
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BAB#FFFFFF#000000##FFFFFF
##254BAB1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254bab;
/* rgb */ color: rgb(37, 75, 171);
/* oklch */ color: oklch(44.5% 0.160 264.4);
Tailwind
colors: {
  custom: {
    50: '#757cc5',
    500: '#254bab',
    950: '#000000',
  },
}
SCSS
$custom: #254bab;
$custom-light: #757cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#254bab",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 222.985,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44534,
    "c": 0.1602,
    "h": 264.4
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#254BAB
secondary
#C5AA67
accent
#B840E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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