#295799#295799

#295799 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.119 H 257.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#295799
RGBrgb(41, 87, 153)
HSLhsl(215, 58%, 38%)
HSVhsv(215, 73%, 60%)
CMYKcmyk(73.2%, 43.1%, 0%, 40%)
CIE-LABlab(37.09, 7.76, -40.67)
CIE-LCHlch(37.09, 41.41, 280.80°)
OKLaboklab(45.99% -0.0252 -0.1162)
OKLCHoklch(45.99% 0.119 257.8)
XYZxyz(10.0703, 9.5866, 31.4505)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295799 #996B29
analogous
#298F99 #295799 #332999
triadic
#295799 #992957 #579929
tetradic
#295799 #99298F #996B29 #299933
square
#295799 #99298F #996B29 #299933
split-complementary
#295799 #993329 #8F9929
monochromatic
#0F2038 #1C3C69 #295799 #3672C9 #6694D6

Accessibility & contrast

On white

7.20
#295799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#295799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295799
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295799#FFFFFF#000000##FFFFFF
##2957991.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9C
Deuteranopia (green-blind)
#245298
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #295799;
/* rgb */ color: rgb(41, 87, 153);
/* oklch */ color: oklch(46.0% 0.119 257.8);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#295799',
    950: '#000000',
  },
}
SCSS
$custom: #295799;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#295799",
  "rgb": {
    "r": 41,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 215.357,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45986,
    "c": 0.11894,
    "h": 257.8
  },
  "luminance": 0.09588
}

Semantic roles & 50–950 ramp

primary
#295799
secondary
#BC9762
accent
#A247E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #295799

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

Preview Lab → · Contrast checker → · Palette generator →

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