#302CB3#302CB3

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

Color values

HEX#302CB3
RGBrgb(48, 44, 179)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(73.2%, 75.4%, 0%, 29.8%)
CIE-LABlab(28.60, 45.78, -70.06)
CIE-LCHlch(28.60, 83.69, 303.16°)
OKLaboklab(40.41% 0.0133 -0.2027)
OKLCHoklch(40.41% 0.203 273.7)
XYZxyz(10.2536, 5.6834, 43.1957)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB3 #AFB32C
analogous
#2C6BB3 #302CB3 #732CB3
triadic
#302CB3 #B3302C #2CB330
tetradic
#302CB3 #B32C6B #AFB32C #2CB373
square
#302CB3 #B32C6B #AFB32C #2CB373
split-complementary
#302CB3 #B3732C #6BB32C
monochromatic
#161451 #232082 #302CB3 #4E4AD2 #7E7BDF

Accessibility & contrast

On white

9.83
#302CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#302CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB3
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB3#FFFFFF#000000##FFFFFF
##302CB31.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302cb3;
/* rgb */ color: rgb(48, 44, 179);
/* oklch */ color: oklch(40.4% 0.203 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d67cb',
    500: '#302cb3',
    950: '#000000',
  },
}
SCSS
$custom: #302cb3;
$custom-light: #7d67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb3",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 241.778,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.20311,
    "h": 273.7
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#302CB3
secondary
#C4C774
accent
#E444DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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