#302598#302598

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

Color values

HEX#302598
RGBrgb(48, 37, 152)
HSLhsl(246, 61%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(68.4%, 75.7%, 0%, 40.4%)
CIE-LABlab(24.38, 40.85, -60.69)
CIE-LCHlch(24.38, 73.16, 303.94°)
OKLaboklab(36.58% 0.0227 -0.1753)
OKLCHoklch(36.58% 0.177 277.4)
XYZxyz(7.5461, 4.2179, 30.1161)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302598 #8D9825
analogous
#255498 #302598 #6A2598
triadic
#302598 #983025 #259830
tetradic
#302598 #982554 #8D9825 #25986A
square
#302598 #982554 #8D9825 #25986A
split-complementary
#302598 #986A25 #549825
monochromatic
#110D36 #201967 #302598 #4031C9 #6B5FD8

Accessibility & contrast

On white

11.39
#302598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302598
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302598#FFFFFF#000000##FFFFFF
##3025981.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302598;
/* rgb */ color: rgb(48, 37, 152);
/* oklch */ color: oklch(36.6% 0.177 277.4);
Tailwind
colors: {
  custom: {
    50: '#7862b7',
    500: '#302598',
    950: '#000000',
  },
}
SCSS
$custom: #302598;
$custom-light: #7862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302598",
  "rgb": {
    "r": 48,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 245.739,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.17679,
    "h": 277.4
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#302598
secondary
#B4BD5C
accent
#E444D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302598

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

Preview Lab → · Contrast checker → · Palette generator →

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