#30247F#30247F

#30247F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.146 H 281.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#30247F
RGBrgb(48, 36, 127)
HSLhsl(248, 56%, 32%)
HSVhsv(248, 72%, 50%)
CMYKcmyk(62.2%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.66, 33.15, -49.58)
CIE-LCHlch(21.66, 59.64, 303.77°)
OKLaboklab(33.89% 0.0285 -0.1428)
OKLCHoklch(33.89% 0.146 281.3)
XYZxyz(5.6794, 3.4220, 20.4358)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30247F #737F24
analogous
#24467F #30247F #5E247F
triadic
#30247F #7F3024 #247F30
tetradic
#30247F #7F2446 #737F24 #247F5E
square
#30247F #7F2446 #737F24 #247F5E
split-complementary
#30247F #7F5E24 #467F24
monochromatic
#0C0920 #1E164F #30247F #4232AF #6150CD

Accessibility & contrast

On white

12.47
#30247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#30247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30247F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30247F#FFFFFF#000000##FFFFFF
##30247F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #30247f;
/* rgb */ color: rgb(48, 36, 127);
/* oklch */ color: oklch(33.9% 0.146 281.3);
Tailwind
colors: {
  custom: {
    50: '#7260a5',
    500: '#30247f',
    950: '#000000',
  },
}
SCSS
$custom: #30247f;
$custom-light: #7260a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30247f",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 247.912,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33889,
    "c": 0.14566,
    "h": 281.3
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#30247F
secondary
#A4B14E
accent
#DF49CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #30247F

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

Preview Lab → · Contrast checker → · Palette generator →

#30247F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva