#254096#254096

#254096 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.145 H 266.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#254096
RGBrgb(37, 64, 150)
HSLhsl(226, 60%, 37%)
HSVhsv(226, 75%, 59%)
CMYKcmyk(75.3%, 57.3%, 0%, 41.2%)
CIE-LABlab(30.06, 21.48, -50.19)
CIE-LCHlch(30.06, 54.59, 293.17°)
OKLaboklab(40.5% -0.0086 -0.1447)
OKLCHoklch(40.5% 0.145 266.6)
XYZxyz(8.0994, 6.2612, 29.6299)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254096 #967B25
analogous
#257996 #254096 #432596
triadic
#254096 #962540 #409625
tetradic
#254096 #962579 #967B25 #259643
square
#254096 #962579 #967B25 #259643
split-complementary
#254096 #964325 #799625
monochromatic
#0D1634 #192B65 #254096 #3155C7 #5E7BD7

Accessibility & contrast

On white

9.32
#254096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#254096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254096
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254096#FFFFFF#000000##FFFFFF
##2540961.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #254096;
/* rgb */ color: rgb(37, 64, 150);
/* oklch */ color: oklch(40.5% 0.145 266.6);
Tailwind
colors: {
  custom: {
    50: '#7074b6',
    500: '#254096',
    950: '#000000',
  },
}
SCSS
$custom: #254096;
$custom-light: #7074b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254096",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 150
  },
  "hsl": {
    "h": 225.664,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.14497,
    "h": 266.6
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#254096
secondary
#BCA55B
accent
#BD44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254096

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

Preview Lab → · Contrast checker → · Palette generator →

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