#30238C#30238C

#30238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.164 H 279.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#30238C
RGBrgb(48, 35, 140)
HSLhsl(247, 60%, 34%)
HSVhsv(247, 75%, 55%)
CMYKcmyk(65.7%, 75%, 0%, 45.1%)
CIE-LABlab(22.74, 38.05, -55.98)
CIE-LCHlch(22.74, 67.69, 304.21°)
OKLaboklab(35.05% 0.0266 -0.1616)
OKLCHoklch(35.05% 0.164 279.4)
XYZxyz(6.5521, 3.7234, 25.1793)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30238C #7F8C23
analogous
#234A8C #30238C #65238C
triadic
#30238C #8C3023 #238C30
tetradic
#30238C #8C234A #7F8C23 #238C65
square
#30238C #8C234A #7F8C23 #238C65
split-complementary
#30238C #8C6523 #4A8C23
monochromatic
#0E0B2A #1F175B #30238C #412FBD #6555D4

Accessibility & contrast

On white

12.04
#30238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#30238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30238C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30238C#FFFFFF#000000##FFFFFF
##30238C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30238c;
/* rgb */ color: rgb(48, 35, 140);
/* oklch */ color: oklch(35.0% 0.164 279.4);
Tailwind
colors: {
  custom: {
    50: '#7560af',
    500: '#30238c',
    950: '#000000',
  },
}
SCSS
$custom: #30238c;
$custom-light: #7560af;
$custom-dark: #000000;
JSON
{
  "hex": "#30238c",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 247.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35046,
    "c": 0.16374,
    "h": 279.4
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#30238C
secondary
#ACB852
accent
#E345D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30238C

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

Preview Lab → · Contrast checker → · Palette generator →

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