#295798#295798

#295798 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.118 H 257.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#295798
RGBrgb(41, 87, 152)
HSLhsl(215, 58%, 38%)
HSVhsv(215, 73%, 60%)
CMYKcmyk(73%, 42.8%, 0%, 40.4%)
CIE-LABlab(37.03, 7.37, -40.17)
CIE-LCHlch(37.03, 40.84, 280.40°)
OKLaboklab(45.92% -0.0254 -0.1148)
OKLCHoklch(45.92% 0.118 257.5)
XYZxyz(9.9881, 9.5537, 31.0173)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295798 #986A29
analogous
#298E98 #295798 #322998
triadic
#295798 #982957 #579829
tetradic
#295798 #98298E #986A29 #299832
square
#295798 #98298E #986A29 #299832
split-complementary
#295798 #983229 #8E9829
monochromatic
#0F2038 #1C3B68 #295798 #3673C8 #6694D6

Accessibility & contrast

On white

7.21
#295798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#295798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295798
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295798#FFFFFF#000000##FFFFFF
##2957981.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9B
Deuteranopia (green-blind)
#255297
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #295798;
/* rgb */ color: rgb(41, 87, 152);
/* oklch */ color: oklch(45.9% 0.118 257.5);
Tailwind
colors: {
  custom: {
    50: '#7185b7',
    500: '#295798',
    950: '#000000',
  },
}
SCSS
$custom: #295798;
$custom-light: #7185b7;
$custom-dark: #000000;
JSON
{
  "hex": "#295798",
  "rgb": {
    "r": 41,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 215.135,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45919,
    "c": 0.11755,
    "h": 257.5
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#295798
secondary
#BC9661
accent
#A147E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #295798

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

Preview Lab → · Contrast checker → · Palette generator →

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