#245198#245198

#245198 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.3% C 0.126 H 259.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#245198
RGBrgb(36, 81, 152)
HSLhsl(217, 62%, 37%)
HSVhsv(217, 76%, 60%)
CMYKcmyk(76.3%, 46.7%, 0%, 40.4%)
CIE-LABlab(35.05, 10.63, -43.34)
CIE-LCHlch(35.05, 44.62, 283.78°)
OKLaboklab(44.34% -0.0235 -0.1243)
OKLCHoklch(44.34% 0.126 259.3)
XYZxyz(9.3354, 8.5259, 30.8533)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#245198 #986B24
analogous
#248B98 #245198 #312498
triadic
#245198 #982451 #519824
tetradic
#245198 #98248B #986B24 #249831
square
#245198 #98248B #986B24 #249831
split-complementary
#245198 #983124 #8B9824
monochromatic
#0D1C35 #183767 #245198 #306BC9 #5E8DD9

Accessibility & contrast

On white

7.76
#245198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#245198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #245198
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##245198#FFFFFF#000000##FFFFFF
##2451981.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589B
Deuteranopia (green-blind)
#114D97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #245198;
/* rgb */ color: rgb(36, 81, 152);
/* oklch */ color: oklch(44.3% 0.126 259.3);
Tailwind
colors: {
  custom: {
    50: '#7081b7',
    500: '#245198',
    950: '#000000',
  },
}
SCSS
$custom: #245198;
$custom-light: #7081b7;
$custom-dark: #000000;
JSON
{
  "hex": "#245198",
  "rgb": {
    "r": 36,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 216.724,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44341,
    "c": 0.12646,
    "h": 259.3
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#245198
secondary
#BE975A
accent
#A643E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #245198

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

Preview Lab → · Contrast checker → · Palette generator →

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