#302CAB#302CAB

#302CAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.193 H 274.4°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#302CAB
RGBrgb(48, 44, 171)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 74%, 67%)
CMYKcmyk(71.9%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.76, 43.15, -66.66)
CIE-LCHlch(27.76, 79.40, 302.92°)
OKLaboklab(39.57% 0.0148 -0.1928)
OKLCHoklch(39.57% 0.193 274.4)
XYZxyz(9.4679, 5.3691, 39.0576)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CAB #A7AB2C
analogous
#2C67AB #302CAB #702CAB
triadic
#302CAB #AB302C #2CAB30
tetradic
#302CAB #AB2C67 #A7AB2C #2CAB70
square
#302CAB #AB2C67 #A7AB2C #2CAB70
split-complementary
#302CAB #AB702C #67AB2C
monochromatic
#15134A #221F7A #302CAB #4945CF #7976DC

Accessibility & contrast

On white

10.13
#302CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302CAB
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CAB#FFFFFF#000000##FFFFFF
##302CAB1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302cab;
/* rgb */ color: rgb(48, 44, 171);
/* oklch */ color: oklch(39.6% 0.193 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b67c5',
    500: '#302cab',
    950: '#000000',
  },
}
SCSS
$custom: #302cab;
$custom-light: #7b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302cab",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 241.89,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.3957,
    "c": 0.19334,
    "h": 274.4
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#302CAB
secondary
#C1C36F
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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