#30238A#30238A

#30238A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.161 H 279.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#30238A
RGBrgb(48, 35, 138)
HSLhsl(248, 60%, 34%)
HSVhsv(248, 75%, 54%)
CMYKcmyk(65.2%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.53, 37.40, -55.06)
CIE-LCHlch(22.53, 66.56, 304.18°)
OKLaboklab(34.84% 0.0271 -0.1589)
OKLCHoklch(34.84% 0.161 279.7)
XYZxyz(6.4059, 3.6649, 24.4097)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30238A #7D8A23
analogous
#234A8A #30238A #64238A
triadic
#30238A #8A3023 #238A30
tetradic
#30238A #8A234A #7D8A23 #238A64
square
#30238A #8A234A #7D8A23 #238A64
split-complementary
#30238A #8A6423 #4A8A23
monochromatic
#0E0A28 #1F1759 #30238A #412FBB #6454D4

Accessibility & contrast

On white

12.12
#30238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30238A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30238A#FFFFFF#000000##FFFFFF
##30238A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30238a;
/* rgb */ color: rgb(48, 35, 138);
/* oklch */ color: oklch(34.8% 0.161 279.7);
Tailwind
colors: {
  custom: {
    50: '#7560ad',
    500: '#30238a',
    950: '#000000',
  },
}
SCSS
$custom: #30238a;
$custom-light: #7560ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30238a",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 247.573,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.16119,
    "h": 279.7
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#30238A
secondary
#ABB751
accent
#E345CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30238A

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

Preview Lab → · Contrast checker → · Palette generator →

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