#254081#254081

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

Color values

HEX#254081
RGBrgb(37, 64, 129)
HSLhsl(222, 55%, 33%)
HSVhsv(222, 71%, 51%)
CMYKcmyk(71.3%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.50, 13.27, -39.76)
CIE-LCHlch(28.50, 41.92, 288.46°)
OKLaboklab(38.82% -0.0107 -0.114)
OKLCHoklch(38.82% 0.115 264.7)
XYZxyz(6.5574, 5.6444, 21.5085)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254081 #816625
analogous
#256E81 #254081 #382581
triadic
#254081 #812540 #408125
tetradic
#254081 #81256E #816625 #258138
square
#254081 #81256E #816625 #258138
split-complementary
#254081 #813825 #6E8125
monochromatic
#0A1122 #172851 #254081 #3358B1 #5377CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##254081#FFFFFF#000000##FFFFFF
##2540811.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)
#1C4883
Deuteranopia (green-blind)
#033F80
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #254081;
/* rgb */ color: rgb(37, 64, 129);
/* oklch */ color: oklch(38.8% 0.115 264.7);
Tailwind
colors: {
  custom: {
    50: '#6b74a6',
    500: '#254081',
    950: '#000000',
  },
}
SCSS
$custom: #254081;
$custom-light: #6b74a6;
$custom-dark: #000000;
JSON
{
  "hex": "#254081",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 222.391,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.11453,
    "h": 264.7
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#254081
secondary
#B29550
accent
#B349DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #254081

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

Preview Lab → · Contrast checker → · Palette generator →

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