#254782#254782

#254782 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.107 H 260.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#254782
RGBrgb(37, 71, 130)
HSLhsl(218, 56%, 33%)
HSVhsv(218, 72%, 51%)
CMYKcmyk(71.5%, 45.4%, 0%, 49%)
CIE-LABlab(30.67, 8.87, -36.90)
CIE-LCHlch(30.67, 37.95, 283.52°)
OKLaboklab(40.51% -0.0174 -0.1055)
OKLCHoklch(40.51% 0.107 260.6)
XYZxyz(7.0440, 6.5108, 22.0002)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254782 #826025
analogous
#257582 #254782 #322582
triadic
#254782 #822547 #478225
tetradic
#254782 #822575 #826025 #258232
square
#254782 #822575 #826025 #258232
split-complementary
#254782 #823225 #758225
monochromatic
#0A1323 #172D52 #254782 #3361B2 #5380CE

Accessibility & contrast

On white

9.12
#254782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#254782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254782
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254782#FFFFFF#000000##FFFFFF
##2547821.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D84
Deuteranopia (green-blind)
#1A4481
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254782;
/* rgb */ color: rgb(37, 71, 130);
/* oklch */ color: oklch(40.5% 0.107 260.6);
Tailwind
colors: {
  custom: {
    50: '#6b79a7',
    500: '#254782',
    950: '#000000',
  },
}
SCSS
$custom: #254782;
$custom-light: #6b79a7;
$custom-dark: #000000;
JSON
{
  "hex": "#254782",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 130
  },
  "hsl": {
    "h": 218.065,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.10693,
    "h": 260.6
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#254782
secondary
#B28F50
accent
#A849DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254782

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

Preview Lab → · Contrast checker → · Palette generator →

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