#30258B#30258B

#30258B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.160 H 279.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#30258B
RGBrgb(48, 37, 139)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 73%, 55%)
CMYKcmyk(65.5%, 73.4%, 0%, 45.5%)
CIE-LABlab(23.05, 36.56, -54.83)
CIE-LCHlch(23.05, 65.90, 303.69°)
OKLaboklab(35.24% 0.0254 -0.1582)
OKLCHoklch(35.24% 0.16 279.1)
XYZxyz(6.5392, 3.8151, 24.8129)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30258B #808B25
analogous
#254D8B #30258B #63258B
triadic
#30258B #8B3025 #258B30
tetradic
#30258B #8B254D #808B25 #258B63
square
#30258B #8B254D #808B25 #258B63
split-complementary
#30258B #8B6325 #4D8B25
monochromatic
#0F0B2A #1F185B #30258B #4132BB #6558D3

Accessibility & contrast

On white

11.91
#30258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#30258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30258B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30258B#FFFFFF#000000##FFFFFF
##30258B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30258b;
/* rgb */ color: rgb(48, 37, 139);
/* oklch */ color: oklch(35.2% 0.160 279.1);
Tailwind
colors: {
  custom: {
    50: '#7561ae',
    500: '#30258b',
    950: '#000000',
  },
}
SCSS
$custom: #30258b;
$custom-light: #7561ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30258b",
  "rgb": {
    "r": 48,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 246.471,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.16026,
    "h": 279.1
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#30258B
secondary
#ACB755
accent
#E147D1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30258B

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

Preview Lab → · Contrast checker → · Palette generator →

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