#295297#295297

#295297 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.122 H 260.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#295297
RGBrgb(41, 82, 151)
HSLhsl(218, 57%, 38%)
HSVhsv(218, 73%, 59%)
CMYKcmyk(72.8%, 45.7%, 0%, 40.8%)
CIE-LABlab(35.48, 10.28, -42.05)
CIE-LCHlch(35.48, 43.28, 283.74°)
OKLaboklab(44.7% -0.0209 -0.1204)
OKLCHoklch(44.7% 0.122 260.2)
XYZxyz(9.5156, 8.7394, 30.4575)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295297 #976E29
analogous
#298997 #295297 #372997
triadic
#295297 #972952 #529729
tetradic
#295297 #972989 #976E29 #299737
square
#295297 #972989 #976E29 #299737
split-complementary
#295297 #973729 #899729
monochromatic
#0F1E37 #1C3867 #295297 #366CC7 #658FD5

Accessibility & contrast

On white

7.64
#295297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #295297
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295297#FFFFFF#000000##FFFFFF
##2952971.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#1A4F96
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #295297;
/* rgb */ color: rgb(41, 82, 151);
/* oklch */ color: oklch(44.7% 0.122 260.2);
Tailwind
colors: {
  custom: {
    50: '#7182b6',
    500: '#295297',
    950: '#000000',
  },
}
SCSS
$custom: #295297;
$custom-light: #7182b6;
$custom-dark: #000000;
JSON
{
  "hex": "#295297",
  "rgb": {
    "r": 41,
    "g": 82,
    "b": 151
  },
  "hsl": {
    "h": 217.636,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44699,
    "c": 0.12216,
    "h": 260.2
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#295297
secondary
#BB9961
accent
#A747E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #295297

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

Preview Lab → · Contrast checker → · Palette generator →

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