#30268B#30268B

#30268B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.159 H 278.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#30268B
RGBrgb(48, 38, 139)
HSLhsl(246, 57%, 35%)
HSVhsv(246, 73%, 55%)
CMYKcmyk(65.5%, 72.7%, 0%, 45.5%)
CIE-LABlab(23.26, 35.96, -54.48)
CIE-LCHlch(23.26, 65.28, 303.43°)
OKLaboklab(35.39% 0.0247 -0.1572)
OKLCHoklch(35.39% 0.159 278.9)
XYZxyz(6.5707, 3.8782, 24.8234)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30268B #818B26
analogous
#264E8B #30268B #63268B
triadic
#30268B #8B3026 #268B30
tetradic
#30268B #8B264E #818B26 #268B63
square
#30268B #8B264E #818B26 #268B63
split-complementary
#30268B #8B6326 #4E8B26
monochromatic
#0F0C2B #1F195B #30268B #4133BB #665AD2

Accessibility & contrast

On white

11.83
#30268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30268B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30268B#FFFFFF#000000##FFFFFF
##30268B1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30268b;
/* rgb */ color: rgb(48, 38, 139);
/* oklch */ color: oklch(35.4% 0.159 278.9);
Tailwind
colors: {
  custom: {
    50: '#7562ae',
    500: '#30268b',
    950: '#000000',
  },
}
SCSS
$custom: #30268b;
$custom-light: #7562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30268b",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 245.941,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35392,
    "c": 0.15913,
    "h": 278.9
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#30268B
secondary
#ADB756
accent
#E047D1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30268B

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

Preview Lab → · Contrast checker → · Palette generator →

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