#254298#254298

#254298 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.145 H 266.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#254298
RGBrgb(37, 66, 152)
HSLhsl(225, 61%, 37%)
HSVhsv(225, 76%, 60%)
CMYKcmyk(75.7%, 56.6%, 0%, 40.4%)
CIE-LABlab(30.77, 20.90, -50.25)
CIE-LCHlch(30.77, 54.42, 292.58°)
OKLaboklab(41.09% -0.0101 -0.1449)
OKLCHoklch(41.09% 0.145 266)
XYZxyz(8.3767, 6.5558, 30.5236)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254298 #987B25
analogous
#257B98 #254298 #422598
triadic
#254298 #982542 #429825
tetradic
#254298 #98257B #987B25 #259842
square
#254298 #98257B #987B25 #259842
split-complementary
#254298 #984225 #7B9825
monochromatic
#0D1736 #192D67 #254298 #3157C9 #5F7ED8

Accessibility & contrast

On white

9.09
#254298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#254298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254298
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254298#FFFFFF#000000##FFFFFF
##2542981.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #254298;
/* rgb */ color: rgb(37, 66, 152);
/* oklch */ color: oklch(41.1% 0.145 266.0);
Tailwind
colors: {
  custom: {
    50: '#7175b7',
    500: '#254298',
    950: '#000000',
  },
}
SCSS
$custom: #254298;
$custom-light: #7175b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254298",
  "rgb": {
    "r": 37,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 224.87,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41089,
    "c": 0.14521,
    "h": 266
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#254298
secondary
#BDA55C
accent
#BC44E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254298

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

Preview Lab → · Contrast checker → · Palette generator →

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