#30258C#30258C

#30258C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.162 H 279.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#30258C
RGBrgb(48, 37, 140)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(65.7%, 73.6%, 0%, 45.1%)
CIE-LABlab(23.15, 36.89, -55.29)
CIE-LCHlch(23.15, 66.47, 303.71°)
OKLaboklab(35.34% 0.0252 -0.1596)
OKLCHoklch(35.34% 0.162 279)
XYZxyz(6.6126, 3.8444, 25.1994)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30258C #818C25
analogous
#254D8C #30258C #64258C
triadic
#30258C #8C3025 #258C30
tetradic
#30258C #8C254D #818C25 #258C64
square
#30258C #8C254D #818C25 #258C64
split-complementary
#30258C #8C6425 #4D8C25
monochromatic
#0F0B2B #1F185C #30258C #4132BC #6658D3

Accessibility & contrast

On white

11.87
#30258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#30258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30258C
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30258C#FFFFFF#000000##FFFFFF
##30258C1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30258c;
/* rgb */ color: rgb(48, 37, 140);
/* oklch */ color: oklch(35.3% 0.162 279.0);
Tailwind
colors: {
  custom: {
    50: '#7561af',
    500: '#30258c',
    950: '#000000',
  },
}
SCSS
$custom: #30258c;
$custom-light: #7561af;
$custom-dark: #000000;
JSON
{
  "hex": "#30258c",
  "rgb": {
    "r": 48,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 246.408,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35341,
    "c": 0.16156,
    "h": 279
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#30258C
secondary
#ADB855
accent
#E146D1
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30258C

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

Preview Lab → · Contrast checker → · Palette generator →

#30258C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva