#254796#254796

#254796 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.136 H 263.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#254796
RGBrgb(37, 71, 150)
HSLhsl(222, 60%, 37%)
HSVhsv(222, 75%, 59%)
CMYKcmyk(75.3%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.04, 16.72, -46.99)
CIE-LCHlch(32.04, 49.87, 289.58°)
OKLaboklab(42% -0.0143 -0.1352)
OKLCHoklch(42% 0.136 263.9)
XYZxyz(8.5193, 7.1009, 29.7699)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254796 #967425
analogous
#258096 #254796 #3C2596
triadic
#254796 #962547 #479625
tetradic
#254796 #962580 #967425 #25963C
square
#254796 #962580 #967425 #25963C
split-complementary
#254796 #963C25 #809625
monochromatic
#0D1934 #193065 #254796 #315EC7 #5E83D7

Accessibility & contrast

On white

8.68
#254796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#254796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254796
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254796#FFFFFF#000000##FFFFFF
##2547961.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135199
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254796;
/* rgb */ color: rgb(37, 71, 150);
/* oklch */ color: oklch(42.0% 0.136 263.9);
Tailwind
colors: {
  custom: {
    50: '#7079b5',
    500: '#254796',
    950: '#000000',
  },
}
SCSS
$custom: #254796;
$custom-light: #7079b5;
$custom-dark: #000000;
JSON
{
  "hex": "#254796",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 221.947,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.13594,
    "h": 263.9
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

primary
#254796
secondary
#BC9F5B
accent
#B444E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254796

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

Preview Lab → · Contrast checker → · Palette generator →

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