#254181#254181

#254181 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.113 H 264.1°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#254181
RGBrgb(37, 65, 129)
HSLhsl(222, 55%, 33%)
HSVhsv(222, 71%, 51%)
CMYKcmyk(71.3%, 49.6%, 0%, 49.4%)
CIE-LABlab(28.79, 12.58, -39.28)
CIE-LCHlch(28.79, 41.25, 287.76°)
OKLaboklab(39.05% -0.0116 -0.1126)
OKLCHoklch(39.05% 0.113 264.1)
XYZxyz(6.6143, 5.7582, 21.5275)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254181 #816525
analogous
#256F81 #254181 #372581
triadic
#254181 #812541 #418125
tetradic
#254181 #81256F #816525 #258137
square
#254181 #81256F #816525 #258137
split-complementary
#254181 #813725 #6F8125
monochromatic
#0A1122 #172951 #254181 #3359B1 #5378CE

Accessibility & contrast

On white

9.76
#254181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#254181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254181
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254181#FFFFFF#000000##FFFFFF
##2541811.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4883
Deuteranopia (green-blind)
#074080
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #254181;
/* rgb */ color: rgb(37, 65, 129);
/* oklch */ color: oklch(39.0% 0.113 264.1);
Tailwind
colors: {
  custom: {
    50: '#6b75a6',
    500: '#254181',
    950: '#000000',
  },
}
SCSS
$custom: #254181;
$custom-light: #6b75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#254181",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 221.739,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39049,
    "c": 0.11321,
    "h": 264.1
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#254181
secondary
#B29450
accent
#B149DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #254181

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

Preview Lab → · Contrast checker → · Palette generator →

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