#302A9B#302A9B

#302A9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.175 H 276.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#302A9B
RGBrgb(48, 42, 155)
HSLhsl(243, 57%, 39%)
HSVhsv(243, 73%, 61%)
CMYKcmyk(69%, 72.9%, 0%, 39.2%)
CIE-LABlab(25.71, 38.97, -60.33)
CIE-LCHlch(25.71, 71.82, 302.86°)
OKLaboklab(37.62% 0.019 -0.1743)
OKLCHoklch(37.62% 0.175 276.2)
XYZxyz(7.9613, 4.6502, 31.4820)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A9B #959B2A
analogous
#2A5C9B #302A9B #682A9B
triadic
#302A9B #9B302A #2A9B30
tetradic
#302A9B #9B2A5C #959B2A #2A9B68
square
#302A9B #9B2A5C #959B2A #2A9B68
split-complementary
#302A9B #9B682A #5C9B2A
monochromatic
#12103B #211D6B #302A9B #4139C9 #6F69D6

Accessibility & contrast

On white

10.88
#302A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#302A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A9B
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A9B#FFFFFF#000000##FFFFFF
##302A9B1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302a9b;
/* rgb */ color: rgb(48, 42, 155);
/* oklch */ color: oklch(37.6% 0.175 276.2);
Tailwind
colors: {
  custom: {
    50: '#7865ba',
    500: '#302a9b',
    950: '#000000',
  },
}
SCSS
$custom: #302a9b;
$custom-light: #7865ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302a9b",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 243.186,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37623,
    "c": 0.17534,
    "h": 276.2
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#302A9B
secondary
#B8BD64
accent
#E147D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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