#295797#295797

#295797 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.9% C 0.116 H 257.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#295797
RGBrgb(41, 87, 151)
HSLhsl(215, 57%, 38%)
HSVhsv(215, 73%, 59%)
CMYKcmyk(72.8%, 42.4%, 0%, 40.8%)
CIE-LABlab(36.97, 6.99, -39.66)
CIE-LCHlch(36.97, 40.27, 280.00°)
OKLaboklab(45.85% -0.0257 -0.1133)
OKLCHoklch(45.85% 0.116 257.2)
XYZxyz(9.9065, 9.5211, 30.5878)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295797 #976929
analogous
#298E97 #295797 #322997
triadic
#295797 #972957 #579729
tetradic
#295797 #97298E #976929 #299732
square
#295797 #97298E #976929 #299732
split-complementary
#295797 #973229 #8E9729
monochromatic
#0F2037 #1C3B67 #295797 #3673C7 #6594D5

Accessibility & contrast

On white

7.23
#295797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#295797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295797
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295797#FFFFFF#000000##FFFFFF
##2957971.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395C9A
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #295797;
/* rgb */ color: rgb(41, 87, 151);
/* oklch */ color: oklch(45.9% 0.116 257.2);
Tailwind
colors: {
  custom: {
    50: '#7185b6',
    500: '#295797',
    950: '#000000',
  },
}
SCSS
$custom: #295797;
$custom-light: #7185b6;
$custom-dark: #000000;
JSON
{
  "hex": "#295797",
  "rgb": {
    "r": 41,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 214.909,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45853,
    "c": 0.11614,
    "h": 257.2
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#295797
secondary
#BB9561
accent
#A047E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #295797

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

Preview Lab → · Contrast checker → · Palette generator →

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