#302C95#302C95

#302C95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.165 H 276.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#302C95
RGBrgb(48, 44, 149)
HSLhsl(242, 54%, 38%)
HSVhsv(242, 70%, 58%)
CMYKcmyk(67.8%, 70.5%, 0%, 41.6%)
CIE-LABlab(25.56, 35.72, -56.90)
CIE-LCHlch(25.56, 67.19, 302.12°)
OKLaboklab(37.33% 0.0186 -0.1643)
OKLCHoklch(37.33% 0.165 276.5)
XYZxyz(7.5426, 4.5990, 28.9182)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C95 #91952C
analogous
#2C5C95 #302C95 #652C95
triadic
#302C95 #95302C #2C9530
tetradic
#302C95 #952C5C #91952C #2C9565
square
#302C95 #952C5C #91952C #2C9565
split-complementary
#302C95 #95652C #5C952C
monochromatic
#121037 #211E66 #302C95 #3F3AC4 #6D69D3

Accessibility & contrast

On white

10.94
#302C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#302C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C95
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C95#FFFFFF#000000##FFFFFF
##302C951.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302c95;
/* rgb */ color: rgb(48, 44, 149);
/* oklch */ color: oklch(37.3% 0.165 276.5);
Tailwind
colors: {
  custom: {
    50: '#7666b5',
    500: '#302c95',
    950: '#000000',
  },
}
SCSS
$custom: #302c95;
$custom-light: #7666b5;
$custom-dark: #000000;
JSON
{
  "hex": "#302c95",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 242.286,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37334,
    "c": 0.16535,
    "h": 276.5
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#302C95
secondary
#B6B964
accent
#DE4AD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302C95

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

Preview Lab → · Contrast checker → · Palette generator →

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