#302897#302897

#302897 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.172 H 277.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#302897
RGBrgb(48, 40, 151)
HSLhsl(244, 58%, 37%)
HSVhsv(244, 74%, 59%)
CMYKcmyk(68.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.89, 38.80, -59.24)
CIE-LCHlch(24.89, 70.81, 303.23°)
OKLaboklab(36.91% 0.021 -0.1711)
OKLCHoklch(36.91% 0.172 277)
XYZxyz(7.5618, 4.3797, 29.7190)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302897 #8F9728
analogous
#285897 #302897 #672897
triadic
#302897 #973028 #289730
tetradic
#302897 #972858 #8F9728 #289767
square
#302897 #972858 #8F9728 #289767
split-complementary
#302897 #976728 #589728
monochromatic
#110E36 #211B67 #302897 #3F35C7 #6C64D6

Accessibility & contrast

On white

11.19
#302897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302897
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302897#FFFFFF#000000##FFFFFF
##3028971.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302897;
/* rgb */ color: rgb(48, 40, 151);
/* oklch */ color: oklch(36.9% 0.172 277.0);
Tailwind
colors: {
  custom: {
    50: '#7763b7',
    500: '#302897',
    950: '#000000',
  },
}
SCSS
$custom: #302897;
$custom-light: #7763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302897",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 244.324,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36913,
    "c": 0.17239,
    "h": 277
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#302897
secondary
#B5BC5F
accent
#E146D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302897

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

Preview Lab → · Contrast checker → · Palette generator →

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