#295298#295298

#295298 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.8% C 0.124 H 260.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#295298
RGBrgb(41, 82, 152)
HSLhsl(218, 58%, 38%)
HSVhsv(218, 73%, 60%)
CMYKcmyk(73%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.54, 10.67, -42.55)
CIE-LCHlch(35.54, 43.86, 284.08°)
OKLaboklab(44.77% -0.0207 -0.1218)
OKLCHoklch(44.77% 0.124 260.4)
XYZxyz(9.5972, 8.7720, 30.8870)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295298 #986F29
analogous
#298998 #295298 #382998
triadic
#295298 #982952 #529829
tetradic
#295298 #982989 #986F29 #299838
square
#295298 #982989 #986F29 #299838
split-complementary
#295298 #983829 #899829
monochromatic
#0F1E38 #1C3868 #295298 #366CC8 #668FD6

Accessibility & contrast

On white

7.62
#295298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#295298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295298
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295298#FFFFFF#000000##FFFFFF
##2952981.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#184F97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #295298;
/* rgb */ color: rgb(41, 82, 152);
/* oklch */ color: oklch(44.8% 0.124 260.4);
Tailwind
colors: {
  custom: {
    50: '#7182b7',
    500: '#295298',
    950: '#000000',
  },
}
SCSS
$custom: #295298;
$custom-light: #7182b7;
$custom-dark: #000000;
JSON
{
  "hex": "#295298",
  "rgb": {
    "r": 41,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 217.838,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44769,
    "c": 0.12358,
    "h": 260.4
  },
  "luminance": 0.08773
}

Semantic roles & 50–950 ramp

primary
#295298
secondary
#BC9A61
accent
#A847E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #295298

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

Preview Lab → · Contrast checker → · Palette generator →

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