#30268C#30268C

#30268C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.160 H 278.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#30268C
RGBrgb(48, 38, 140)
HSLhsl(246, 57%, 35%)
HSVhsv(246, 73%, 55%)
CMYKcmyk(65.7%, 72.9%, 0%, 45.1%)
CIE-LABlab(23.36, 36.30, -54.94)
CIE-LCHlch(23.36, 65.85, 303.45°)
OKLaboklab(35.49% 0.0245 -0.1586)
OKLCHoklch(35.49% 0.16 278.8)
XYZxyz(6.6441, 3.9075, 25.2100)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30268C #828C26
analogous
#264F8C #30268C #63268C
triadic
#30268C #8C3026 #268C30
tetradic
#30268C #8C264F #828C26 #268C63
square
#30268C #8C264F #828C26 #268C63
split-complementary
#30268C #8C6326 #4F8C26
monochromatic
#0F0C2C #1F195C #30268C #4133BC #665AD2

Accessibility & contrast

On white

11.79
#30268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#30268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30268C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30268C#FFFFFF#000000##FFFFFF
##30268C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30268c;
/* rgb */ color: rgb(48, 38, 140);
/* oklch */ color: oklch(35.5% 0.160 278.8);
Tailwind
colors: {
  custom: {
    50: '#7562af',
    500: '#30268c',
    950: '#000000',
  },
}
SCSS
$custom: #30268c;
$custom-light: #7562af;
$custom-dark: #000000;
JSON
{
  "hex": "#30268c",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 245.882,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35493,
    "c": 0.16044,
    "h": 278.8
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#30268C
secondary
#AEB757
accent
#E147D2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30268C

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

Preview Lab → · Contrast checker → · Palette generator →

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