#254795#254795

#254795 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.135 H 263.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#254795
RGBrgb(37, 71, 149)
HSLhsl(222, 60%, 36%)
HSVhsv(222, 75%, 58%)
CMYKcmyk(75.2%, 52.3%, 0%, 41.6%)
CIE-LABlab(31.96, 16.32, -46.50)
CIE-LCHlch(31.96, 49.28, 289.34°)
OKLaboklab(41.92% -0.0145 -0.1337)
OKLCHoklch(41.92% 0.135 263.8)
XYZxyz(8.4391, 7.0688, 29.3476)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254795 #957325
analogous
#257F95 #254795 #3B2595
triadic
#254795 #952547 #479525
tetradic
#254795 #95257F #957325 #25953B
square
#254795 #95257F #957325 #25953B
split-complementary
#254795 #953B25 #7F9525
monochromatic
#0D1833 #193064 #254795 #315EC6 #5E82D7

Accessibility & contrast

On white

8.70
#254795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#254795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254795
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254795#FFFFFF#000000##FFFFFF
##2547951.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254795;
/* rgb */ color: rgb(37, 71, 149);
/* oklch */ color: oklch(41.9% 0.135 263.8);
Tailwind
colors: {
  custom: {
    50: '#7079b5',
    500: '#254795',
    950: '#000000',
  },
}
SCSS
$custom: #254795;
$custom-light: #7079b5;
$custom-dark: #000000;
JSON
{
  "hex": "#254795",
  "rgb": {
    "r": 37,
    "g": 71,
    "b": 149
  },
  "hsl": {
    "h": 221.786,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41918,
    "c": 0.13451,
    "h": 263.8
  },
  "luminance": 0.0707
}

Semantic roles & 50–950 ramp

primary
#254795
secondary
#BC9E5A
accent
#B344E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254795

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

Preview Lab → · Contrast checker → · Palette generator →

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