#30268F#30268F

#30268F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.164 H 278.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#30268F
RGBrgb(48, 38, 143)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 73%, 56%)
CMYKcmyk(66.4%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.66, 37.30, -56.32)
CIE-LCHlch(23.66, 67.55, 303.52°)
OKLaboklab(35.8% 0.0239 -0.1626)
OKLCHoklch(35.8% 0.164 278.4)
XYZxyz(6.8684, 3.9972, 26.3909)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30268F #858F26
analogous
#26518F #30268F #64268F
triadic
#30268F #8F3026 #268F30
tetradic
#30268F #8F2651 #858F26 #268F64
square
#30268F #8F2651 #858F26 #268F64
split-complementary
#30268F #8F6426 #518F26
monochromatic
#100C2E #20195F #30268F #4033BF #675CD4

Accessibility & contrast

On white

11.67
#30268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#30268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30268F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30268F#FFFFFF#000000##FFFFFF
##30268F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30268f;
/* rgb */ color: rgb(48, 38, 143);
/* oklch */ color: oklch(35.8% 0.164 278.4);
Tailwind
colors: {
  custom: {
    50: '#7662b1',
    500: '#30268f',
    950: '#000000',
  },
}
SCSS
$custom: #30268f;
$custom-light: #7662b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30268f",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 245.714,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35796,
    "c": 0.16432,
    "h": 278.4
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#30268F
secondary
#AFB958
accent
#E147D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30268F

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

Preview Lab → · Contrast checker → · Palette generator →

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