#254E95#254E95

#254E95 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.5% C 0.126 H 260.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#254E95
RGBrgb(37, 78, 149)
HSLhsl(218, 60%, 36%)
HSVhsv(218, 75%, 58%)
CMYKcmyk(75.2%, 47.7%, 0%, 41.6%)
CIE-LABlab(34.01, 11.59, -43.20)
CIE-LCHlch(34.01, 44.73, 285.02°)
OKLaboklab(43.48% -0.0206 -0.1239)
OKLCHoklch(43.48% 0.126 260.6)
XYZxyz(8.9102, 8.0110, 29.5046)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E95 #956C25
analogous
#258695 #254E95 #342595
triadic
#254E95 #95254E #4E9525
tetradic
#254E95 #952586 #956C25 #259534
square
#254E95 #952586 #956C25 #259534
split-complementary
#254E95 #953425 #869525
monochromatic
#0D1B33 #193464 #254E95 #3168C6 #5E8AD7

Accessibility & contrast

On white

8.07
#254E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#254E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E95
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E95#FFFFFF#000000##FFFFFF
##254E951.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285598
Deuteranopia (green-blind)
#0D4B94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254e95;
/* rgb */ color: rgb(37, 78, 149);
/* oklch */ color: oklch(43.5% 0.126 260.6);
Tailwind
colors: {
  custom: {
    50: '#6f7fb5',
    500: '#254e95',
    950: '#000000',
  },
}
SCSS
$custom: #254e95;
$custom-light: #6f7fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#254e95",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 218.036,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4348,
    "c": 0.12561,
    "h": 260.6
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#254E95
secondary
#BC985A
accent
#A944E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #254E95

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

Preview Lab → · Contrast checker → · Palette generator →

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