#302BB4#302BB4

#302BB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.205 H 273.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#302BB4
RGBrgb(48, 43, 180)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.3%, 76.1%, 0%, 29.4%)
CIE-LABlab(28.51, 46.66, -70.80)
CIE-LCHlch(28.51, 84.79, 303.38°)
OKLaboklab(40.38% 0.0135 -0.2048)
OKLCHoklch(40.38% 0.205 273.8)
XYZxyz(10.3183, 5.6504, 43.7180)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BB4 #AFB42B
analogous
#2B6AB4 #302BB4 #742BB4
triadic
#302BB4 #B4302B #2BB430
tetradic
#302BB4 #B42B6A #AFB42B #2BB474
square
#302BB4 #B42B6A #AFB42B #2BB474
split-complementary
#302BB4 #B4742B #6AB42B
monochromatic
#161351 #231F83 #302BB4 #4E49D3 #7E7ADF

Accessibility & contrast

On white

9.86
#302BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#302BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BB4
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BB4#FFFFFF#000000##FFFFFF
##302BB41.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302bb4;
/* rgb */ color: rgb(48, 43, 180);
/* oklch */ color: oklch(40.4% 0.205 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d67cc',
    500: '#302bb4',
    950: '#000000',
  },
}
SCSS
$custom: #302bb4;
$custom-light: #7d67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302bb4",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 242.19,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40383,
    "c": 0.20528,
    "h": 273.8
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

primary
#302BB4
secondary
#C4C773
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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