#254278#254278

#254278 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.098 H 261.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#254278
RGBrgb(37, 66, 120)
HSLhsl(219, 53%, 31%)
HSVhsv(219, 69%, 47%)
CMYKcmyk(69.2%, 45%, 0%, 52.9%)
CIE-LABlab(28.50, 8.38, -34.12)
CIE-LCHlch(28.50, 35.13, 283.80°)
OKLaboklab(38.63% -0.0143 -0.0974)
OKLCHoklch(38.63% 0.098 261.7)
XYZxyz(6.1001, 5.6452, 18.5338)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254278 #785B25
analogous
#256B78 #254278 #312578
triadic
#254278 #782542 #427825
tetradic
#254278 #78256B #785B25 #257831
square
#254278 #78256B #785B25 #257831
split-complementary
#254278 #783125 #6B7825
monochromatic
#080F1A #172849 #254278 #335CA7 #4F79C9

Accessibility & contrast

On white

9.86
#254278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#254278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254278
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254278#FFFFFF#000000##FFFFFF
##2542781.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1B4077
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #254278;
/* rgb */ color: rgb(37, 66, 120);
/* oklch */ color: oklch(38.6% 0.098 261.7);
Tailwind
colors: {
  custom: {
    50: '#69759f',
    500: '#254278',
    950: '#000000',
  },
}
SCSS
$custom: #254278;
$custom-light: #69759f;
$custom-dark: #000000;
JSON
{
  "hex": "#254278",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 120
  },
  "hsl": {
    "h": 219.036,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.09845,
    "h": 261.7
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#254278
secondary
#AA8A4E
accent
#AA4CDC
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254278

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

Preview Lab → · Contrast checker → · Palette generator →

#254278 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva