#295198#295198

#295198 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.125 H 260.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#295198
RGBrgb(41, 81, 152)
HSLhsl(218, 58%, 38%)
HSVhsv(218, 73%, 60%)
CMYKcmyk(73%, 46.7%, 0%, 40.4%)
CIE-LABlab(35.25, 11.33, -43.02)
CIE-LCHlch(35.25, 44.49, 284.76°)
OKLaboklab(44.54% -0.0197 -0.1232)
OKLCHoklch(44.54% 0.125 260.9)
XYZxyz(9.5223, 8.6223, 30.8621)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295198 #987029
analogous
#298998 #295198 #382998
triadic
#295198 #982951 #519829
tetradic
#295198 #982989 #987029 #299838
square
#295198 #982989 #987029 #299838
split-complementary
#295198 #983829 #899829
monochromatic
#0F1E38 #1C3768 #295198 #366BC8 #668ED6

Accessibility & contrast

On white

7.71
#295198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#295198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295198
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295198#FFFFFF#000000##FFFFFF
##2951981.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #295198;
/* rgb */ color: rgb(41, 81, 152);
/* oklch */ color: oklch(44.5% 0.125 260.9);
Tailwind
colors: {
  custom: {
    50: '#7181b7',
    500: '#295198',
    950: '#000000',
  },
}
SCSS
$custom: #295198;
$custom-light: #7181b7;
$custom-dark: #000000;
JSON
{
  "hex": "#295198",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 218.378,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44542,
    "c": 0.12482,
    "h": 260.9
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#295198
secondary
#BC9B61
accent
#A947E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #295198

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

Preview Lab → · Contrast checker → · Palette generator →

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