#245298#245298

#245298 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.6% C 0.125 H 258.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#245298
RGBrgb(36, 82, 152)
HSLhsl(216, 62%, 37%)
HSVhsv(216, 76%, 60%)
CMYKcmyk(76.3%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.35, 9.96, -42.86)
CIE-LCHlch(35.35, 44.00, 283.09°)
OKLaboklab(44.57% -0.0244 -0.1228)
OKLCHoklch(44.57% 0.125 258.8)
XYZxyz(9.4103, 8.6756, 30.8783)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#245298 #986A24
analogous
#248C98 #245298 #302498
triadic
#245298 #982452 #529824
tetradic
#245298 #98248C #986A24 #249830
square
#245298 #98248C #986A24 #249830
split-complementary
#245298 #983024 #8C9824
monochromatic
#0D1D35 #183767 #245298 #306DC9 #5E8ED9

Accessibility & contrast

On white

7.68
#245298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#245298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #245298
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##245298#FFFFFF#000000##FFFFFF
##2452981.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#154E97
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #245298;
/* rgb */ color: rgb(36, 82, 152);
/* oklch */ color: oklch(44.6% 0.125 258.8);
Tailwind
colors: {
  custom: {
    50: '#7082b7',
    500: '#245298',
    950: '#000000',
  },
}
SCSS
$custom: #245298;
$custom-light: #7082b7;
$custom-dark: #000000;
JSON
{
  "hex": "#245298",
  "rgb": {
    "r": 36,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 216.207,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4457,
    "c": 0.12524,
    "h": 258.8
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#245298
secondary
#BE965A
accent
#A543E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #245298

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

Preview Lab → · Contrast checker → · Palette generator →

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