#30237F#30237F

#30237F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.147 H 281.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#30237F
RGBrgb(48, 35, 127)
HSLhsl(248, 57%, 32%)
HSVhsv(248, 72%, 50%)
CMYKcmyk(62.2%, 72.4%, 0%, 50.2%)
CIE-LABlab(21.44, 33.75, -49.94)
CIE-LCHlch(21.44, 60.27, 304.05°)
OKLaboklab(33.73% 0.0293 -0.1439)
OKLCHoklch(33.73% 0.147 281.5)
XYZxyz(5.6495, 3.3624, 20.4259)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30237F #727F23
analogous
#23447F #30237F #5E237F
triadic
#30237F #7F3023 #237F30
tetradic
#30237F #7F2344 #727F23 #237F5E
square
#30237F #7F2344 #727F23 #237F5E
split-complementary
#30237F #7F5E23 #447F23
monochromatic
#0C091F #1E164F #30237F #4230AF #604ECE

Accessibility & contrast

On white

12.56
#30237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#30237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30237F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30237F#FFFFFF#000000##FFFFFF
##30237F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30237f;
/* rgb */ color: rgb(48, 35, 127);
/* oklch */ color: oklch(33.7% 0.147 281.5);
Tailwind
colors: {
  custom: {
    50: '#725fa5',
    500: '#30237f',
    950: '#000000',
  },
}
SCSS
$custom: #30237f;
$custom-light: #725fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#30237f",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 248.478,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.14686,
    "h": 281.5
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#30237F
secondary
#A3B14C
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #30237F

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

Preview Lab → · Contrast checker → · Palette generator →

#30237F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva