#302BAC#302BAC

#302BAC is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.196 H 274.4°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#302BAC
RGBrgb(48, 43, 172)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.1%, 75%, 0%, 32.5%)
CIE-LABlab(27.67, 44.05, -67.41)
CIE-LCHlch(27.67, 80.53, 303.16°)
OKLaboklab(39.53% 0.0151 -0.195)
OKLCHoklch(39.53% 0.196 274.4)
XYZxyz(9.5267, 5.3338, 39.5492)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BAC #A7AC2B
analogous
#2B66AC #302BAC #712BAC
triadic
#302BAC #AC302B #2BAC30
tetradic
#302BAC #AC2B66 #A7AC2B #2BAC71
square
#302BAC #AC2B66 #A7AC2B #2BAC71
split-complementary
#302BAC #AC712B #66AC2B
monochromatic
#15134A #221F7B #302BAC #4944D0 #7975DC

Accessibility & contrast

On white

10.16
#302BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#302BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BAC
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BAC#FFFFFF#000000##FFFFFF
##302BAC1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003BAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302bac;
/* rgb */ color: rgb(48, 43, 172);
/* oklch */ color: oklch(39.5% 0.196 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c66c6',
    500: '#302bac',
    950: '#000000',
  },
}
SCSS
$custom: #302bac;
$custom-light: #7c66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#302bac",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 242.326,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39533,
    "c": 0.19556,
    "h": 274.4
  },
  "luminance": 0.05335
}

Semantic roles & 50–950 ramp

primary
#302BAC
secondary
#C1C46F
accent
#E345DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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