#254F9D#254F9D

#254F9D is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.136 H 261.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#254F9D
RGBrgb(37, 79, 157)
HSLhsl(219, 62%, 38%)
HSVhsv(219, 76%, 62%)
CMYKcmyk(76.4%, 49.7%, 0%, 38.4%)
CIE-LABlab(34.84, 14.06, -46.70)
CIE-LCHlch(34.84, 48.77, 286.75°)
OKLaboklab(44.29% -0.0202 -0.1342)
OKLCHoklch(44.29% 0.136 261.4)
XYZxyz(9.6425, 8.4185, 33.0085)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F9D #9D7325
analogous
#258B9D #254F9D #37259D
triadic
#254F9D #9D254F #4F9D25
tetradic
#254F9D #9D258B #9D7325 #259D37
square
#254F9D #9D258B #9D7325 #259D37
split-complementary
#254F9D #9D3725 #8B9D25
monochromatic
#0E1D3A #19366B #254F9D #3168CE #628CDA

Accessibility & contrast

On white

7.82
#254F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#254F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F9D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F9D#FFFFFF#000000##FFFFFF
##254F9D1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254f9d;
/* rgb */ color: rgb(37, 79, 157);
/* oklch */ color: oklch(44.3% 0.136 261.4);
Tailwind
colors: {
  custom: {
    50: '#717fba',
    500: '#254f9d',
    950: '#000000',
  },
}
SCSS
$custom: #254f9d;
$custom-light: #717fba;
$custom-dark: #000000;
JSON
{
  "hex": "#254f9d",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 219,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.13569,
    "h": 261.4
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#254F9D
secondary
#BF9D5E
accent
#AC43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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