#302FCF#302FCF

#302FCF is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.8% C 0.233 H 271.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#302FCF
RGBrgb(48, 47, 207)
HSLhsl(240, 63%, 50%)
HSVhsv(240, 77%, 81%)
CMYKcmyk(76.8%, 77.3%, 0%, 18.8%)
CIE-LABlab(32.18, 53.17, -80.62)
CIE-LCHlch(32.18, 96.57, 303.41°)
OKLaboklab(43.82% 0.0065 -0.2334)
OKLCHoklch(43.82% 0.233 271.6)
XYZxyz(13.4941, 7.1649, 59.6912)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FCF #CECF2F
analogous
#2F7ECF #302FCF #802FCF
triadic
#302FCF #CF302F #2FCF30
tetradic
#302FCF #CF2F7E #CECF2F #2FCF80
square
#302FCF #CF2F7E #CECF2F #2FCF80
split-complementary
#302FCF #CF802F #7ECF2F
monochromatic
#19186B #24249D #302FCF #6160DB #9392E6

Accessibility & contrast

On white

8.63
#302FCF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#302FCF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FCF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FCF#FFFFFF#000000##FFFFFF
##302FCF1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D4
Deuteranopia (green-blind)
#0044CC
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #302fcf;
/* rgb */ color: rgb(48, 47, 207);
/* oklch */ color: oklch(43.8% 0.233 271.6);
Tailwind
colors: {
  custom: {
    50: '#836bdf',
    500: '#302fcf',
    950: '#000000',
  },
}
SCSS
$custom: #302fcf;
$custom-light: #836bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#302fcf",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 207
  },
  "hsl": {
    "h": 240.375,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.43824,
    "c": 0.23348,
    "h": 271.6
  },
  "luminance": 0.07166
}

Semantic roles & 50–950 ramp

primary
#302FCF
secondary
#D1D189
accent
#E642E5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #302FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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