#30238F#30238F

#30238F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.168 H 278.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#30238F
RGBrgb(48, 35, 143)
HSLhsl(247, 61%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(66.4%, 75.5%, 0%, 43.9%)
CIE-LABlab(23.04, 39.03, -57.33)
CIE-LCHlch(23.04, 69.36, 304.25°)
OKLaboklab(35.36% 0.0259 -0.1655)
OKLCHoklch(35.36% 0.168 278.9)
XYZxyz(6.7763, 3.8131, 26.3602)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30238F #828F23
analogous
#234C8F #30238F #66238F
triadic
#30238F #8F3023 #238F30
tetradic
#30238F #8F234C #828F23 #238F66
square
#30238F #8F234C #828F23 #238F66
split-complementary
#30238F #8F6623 #4C8F23
monochromatic
#0F0B2D #1F175E #30238F #412FC0 #6657D6

Accessibility & contrast

On white

11.91
#30238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#30238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30238F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30238F#FFFFFF#000000##FFFFFF
##30238F1.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)
#003B92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30238f;
/* rgb */ color: rgb(48, 35, 143);
/* oklch */ color: oklch(35.4% 0.168 278.9);
Tailwind
colors: {
  custom: {
    50: '#7660b1',
    500: '#30238f',
    950: '#000000',
  },
}
SCSS
$custom: #30238f;
$custom-light: #7660b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30238f",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 247.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35357,
    "c": 0.16755,
    "h": 278.9
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#30238F
secondary
#AEBA54
accent
#E444D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30238F

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

Preview Lab → · Contrast checker → · Palette generator →

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