#254881#254881

#254881 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.104 H 259.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#254881
RGBrgb(37, 72, 129)
HSLhsl(217, 55%, 33%)
HSVhsv(217, 71%, 51%)
CMYKcmyk(71.3%, 44.2%, 0%, 49.4%)
CIE-LABlab(30.91, 7.81, -35.89)
CIE-LCHlch(30.91, 36.73, 282.27°)
OKLaboklab(40.67% -0.0187 -0.1025)
OKLCHoklch(40.67% 0.104 259.7)
XYZxyz(7.0413, 6.6123, 21.6698)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254881 #815E25
analogous
#257681 #254881 #302581
triadic
#254881 #812548 #488125
tetradic
#254881 #812576 #815E25 #258130
square
#254881 #812576 #815E25 #258130
split-complementary
#254881 #813025 #768125
monochromatic
#0A1322 #172D51 #254881 #3363B1 #5382CE

Accessibility & contrast

On white

9.04
#254881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#254881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254881
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254881#FFFFFF#000000##FFFFFF
##2548811.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4D83
Deuteranopia (green-blind)
#1D4580
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254881;
/* rgb */ color: rgb(37, 72, 129);
/* oklch */ color: oklch(40.7% 0.104 259.7);
Tailwind
colors: {
  custom: {
    50: '#6b7aa6',
    500: '#254881',
    950: '#000000',
  },
}
SCSS
$custom: #254881;
$custom-light: #6b7aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#254881",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 129
  },
  "hsl": {
    "h": 217.174,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.10422,
    "h": 259.7
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#254881
secondary
#B28D50
accent
#A649DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254881

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

Preview Lab → · Contrast checker → · Palette generator →

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