#302BB6#302BB6

#302BB6 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.208 H 273.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#302BB6
RGBrgb(48, 43, 182)
HSLhsl(242, 62%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.6%, 76.4%, 0%, 28.6%)
CIE-LABlab(28.73, 47.30, -71.64)
CIE-LCHlch(28.73, 85.84, 303.44°)
OKLaboklab(40.6% 0.0131 -0.2073)
OKLCHoklch(40.6% 0.208 273.6)
XYZxyz(10.5235, 5.7325, 44.7988)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB6 #B1B62B
analogous
#2B6CB6 #302BB6 #762BB6
triadic
#302BB6 #B6302B #2BB630
tetradic
#302BB6 #B62B6C #B1B62B #2BB676
square
#302BB6 #B62B6C #B1B62B #2BB676
split-complementary
#302BB6 #B6762B #6CB62B
monochromatic
#161453 #231F84 #302BB6 #4F4AD4 #7F7BE0

Accessibility & contrast

On white

9.78
#302BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#302BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB6
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB6#FFFFFF#000000##FFFFFF
##302BB61.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003DB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302bb6;
/* rgb */ color: rgb(48, 43, 182);
/* oklch */ color: oklch(40.6% 0.208 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e67cd',
    500: '#302bb6',
    950: '#000000',
  },
}
SCSS
$custom: #302bb6;
$custom-light: #7e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb6",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 242.158,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40598,
    "c": 0.20767,
    "h": 273.6
  },
  "luminance": 0.05734
}

Semantic roles & 50–950 ramp

primary
#302BB6
secondary
#C5C875
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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