#254281#254281

#254281 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.112 H 263.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#254281
RGBrgb(37, 66, 129)
HSLhsl(221, 55%, 33%)
HSVhsv(221, 71%, 51%)
CMYKcmyk(71.3%, 48.8%, 0%, 49.4%)
CIE-LABlab(29.09, 11.90, -38.80)
CIE-LCHlch(29.09, 40.59, 287.04°)
OKLaboklab(39.28% -0.0126 -0.1112)
OKLCHoklch(39.28% 0.112 263.5)
XYZxyz(6.6722, 5.8740, 21.5468)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254281 #816425
analogous
#257081 #254281 #362581
triadic
#254281 #812542 #428125
tetradic
#254281 #812570 #816425 #258136
square
#254281 #812570 #816425 #258136
split-complementary
#254281 #813625 #708125
monochromatic
#0A1122 #172A51 #254281 #335AB1 #537ACE

Accessibility & contrast

On white

9.66
#254281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#254281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254281
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254281#FFFFFF#000000##FFFFFF
##2542811.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214983
Deuteranopia (green-blind)
#0C4180
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254281;
/* rgb */ color: rgb(37, 66, 129);
/* oklch */ color: oklch(39.3% 0.112 263.5);
Tailwind
colors: {
  custom: {
    50: '#6b75a6',
    500: '#254281',
    950: '#000000',
  },
}
SCSS
$custom: #254281;
$custom-light: #6b75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#254281",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 221.087,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.1119,
    "h": 263.5
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#254281
secondary
#B29350
accent
#B049DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #254281

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

Preview Lab → · Contrast checker → · Palette generator →

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