#254E9C#254E9C

#254E9C is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.136 H 261.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#254E9C
RGBrgb(37, 78, 156)
HSLhsl(219, 62%, 38%)
HSVhsv(219, 76%, 61%)
CMYKcmyk(76.3%, 50%, 0%, 38.8%)
CIE-LABlab(34.48, 14.34, -46.68)
CIE-LCHlch(34.48, 48.83, 287.08°)
OKLaboklab(44% -0.0195 -0.1341)
OKLCHoklch(44% 0.136 261.7)
XYZxyz(9.4859, 8.2413, 32.5368)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E9C #9C7325
analogous
#25899C #254E9C #38259C
triadic
#254E9C #9C254E #4E9C25
tetradic
#254E9C #9C2589 #9C7325 #259C38
square
#254E9C #9C2589 #9C7325 #259C38
split-complementary
#254E9C #9C3825 #899C25
monochromatic
#0E1D39 #19356B #254E9C #3167CD #628BDA

Accessibility & contrast

On white

7.93
#254E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#254E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E9C
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E9C#FFFFFF#000000##FFFFFF
##254E9C1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21579F
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254e9c;
/* rgb */ color: rgb(37, 78, 156);
/* oklch */ color: oklch(44.0% 0.136 261.7);
Tailwind
colors: {
  custom: {
    50: '#717fba',
    500: '#254e9c',
    950: '#000000',
  },
}
SCSS
$custom: #254e9c;
$custom-light: #717fba;
$custom-dark: #000000;
JSON
{
  "hex": "#254e9c",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 219.328,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43997,
    "c": 0.13554,
    "h": 261.7
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#254E9C
secondary
#BF9E5E
accent
#AD43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254E9C

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

Preview Lab → · Contrast checker → · Palette generator →

#254E9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva