#302F98#302F98

#302F98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.166 H 275.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#302F98
RGBrgb(48, 47, 152)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 69%, 60%)
CMYKcmyk(68.4%, 69.1%, 0%, 40.4%)
CIE-LABlab(26.53, 34.91, -57.16)
CIE-LCHlch(26.53, 66.97, 301.41°)
OKLaboklab(38.12% 0.016 -0.165)
OKLCHoklch(38.12% 0.166 275.5)
XYZxyz(7.9011, 4.9277, 30.2344)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F98 #97982F
analogous
#2F6398 #302F98 #652F98
triadic
#302F98 #98302F #2F9830
tetradic
#302F98 #982F63 #97982F #2F9865
square
#302F98 #982F63 #97982F #2F9865
split-complementary
#302F98 #98652F #63982F
monochromatic
#12123B #212169 #302F98 #4140C4 #706FD2

Accessibility & contrast

On white

10.58
#302F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#302F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F98
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F98#FFFFFF#000000##FFFFFF
##302F981.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302f98;
/* rgb */ color: rgb(48, 47, 152);
/* oklch */ color: oklch(38.1% 0.166 275.5);
Tailwind
colors: {
  custom: {
    50: '#7768b7',
    500: '#302f98',
    950: '#000000',
  },
}
SCSS
$custom: #302f98;
$custom-light: #7768b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302f98",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 240.571,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38119,
    "c": 0.16582,
    "h": 275.5
  },
  "luminance": 0.04928
}

Semantic roles & 50–950 ramp

primary
#302F98
secondary
#B9BA69
accent
#DC4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302F98

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

Preview Lab → · Contrast checker → · Palette generator →

#302F98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva