#302697#302697

#302697 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.174 H 277.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#302697
RGBrgb(48, 38, 151)
HSLhsl(245, 60%, 37%)
HSVhsv(245, 75%, 59%)
CMYKcmyk(68.2%, 74.8%, 0%, 40.8%)
CIE-LABlab(24.48, 39.96, -59.92)
CIE-LCHlch(24.48, 72.02, 303.70°)
OKLaboklab(36.62% 0.0223 -0.1731)
OKLCHoklch(36.62% 0.175 277.3)
XYZxyz(7.4961, 4.2483, 29.6971)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302697 #8D9726
analogous
#265497 #302697 #692697
triadic
#302697 #973026 #269730
tetradic
#302697 #972654 #8D9726 #269769
square
#302697 #972654 #8D9726 #269769
split-complementary
#302697 #976926 #549726
monochromatic
#110D35 #201A66 #302697 #4032C8 #6B60D7

Accessibility & contrast

On white

11.35
#302697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302697
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302697#FFFFFF#000000##FFFFFF
##3026971.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302697;
/* rgb */ color: rgb(48, 38, 151);
/* oklch */ color: oklch(36.6% 0.174 277.3);
Tailwind
colors: {
  custom: {
    50: '#7762b7',
    500: '#302697',
    950: '#000000',
  },
}
SCSS
$custom: #302697;
$custom-light: #7762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302697",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 245.31,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.1745,
    "h": 277.3
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#302697
secondary
#B4BC5C
accent
#E345D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302697

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

Preview Lab → · Contrast checker → · Palette generator →

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