#30238B#30238B

#30238B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.162 H 279.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#30238B
RGBrgb(48, 35, 139)
HSLhsl(248, 60%, 34%)
HSVhsv(248, 75%, 55%)
CMYKcmyk(65.5%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.63, 37.72, -55.52)
CIE-LCHlch(22.63, 67.12, 304.20°)
OKLaboklab(34.94% 0.0268 -0.1602)
OKLCHoklch(34.94% 0.162 279.5)
XYZxyz(6.4787, 3.6940, 24.7927)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30238B #7E8B23
analogous
#234A8B #30238B #64238B
triadic
#30238B #8B3023 #238B30
tetradic
#30238B #8B234A #7E8B23 #238B64
square
#30238B #8B234A #7E8B23 #238B64
split-complementary
#30238B #8B6423 #4A8B23
monochromatic
#0E0A29 #1F175A #30238B #412FBC #6454D4

Accessibility & contrast

On white

12.08
#30238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30238B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30238B#FFFFFF#000000##FFFFFF
##30238B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30238b;
/* rgb */ color: rgb(48, 35, 139);
/* oklch */ color: oklch(34.9% 0.162 279.5);
Tailwind
colors: {
  custom: {
    50: '#7560ae',
    500: '#30238b',
    950: '#000000',
  },
}
SCSS
$custom: #30238b;
$custom-light: #7560ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30238b",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 247.5,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34942,
    "c": 0.16246,
    "h": 279.5
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30238B

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

Preview Lab → · Contrast checker → · Palette generator →

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