#30307B#30307B

#30307B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.124 H 278.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#30307B
RGBrgb(48, 48, 123)
HSLhsl(240, 44%, 34%)
HSVhsv(240, 61%, 48%)
CMYKcmyk(61%, 61%, 0%, 51.8%)
CIE-LABlab(24.23, 24.00, -42.85)
CIE-LCHlch(24.23, 49.11, 299.25°)
OKLaboklab(35.65% 0.0174 -0.1231)
OKLCHoklch(35.65% 0.124 278)
XYZxyz(5.8499, 4.1719, 19.2320)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30307B #7B7B30
analogous
#30557B #30307B #55307B
triadic
#30307B #7B3030 #307B30
tetradic
#30307B #7B3055 #7B7B30 #307B55
square
#30307B #7B3055 #7B7B30 #307B55
split-complementary
#30307B #7B5530 #557B30
monochromatic
#0E0E23 #1F1F4F #30307B #4141A7 #6363C2

Accessibility & contrast

On white

11.45
#30307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#30307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30307B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30307B#FFFFFF#000000##FFFFFF
##30307B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30307b;
/* rgb */ color: rgb(48, 48, 123);
/* oklch */ color: oklch(35.7% 0.124 278.0);
Tailwind
colors: {
  custom: {
    50: '#7068a2',
    500: '#30307b',
    950: '#000000',
  },
}
SCSS
$custom: #30307b;
$custom-light: #7068a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30307b",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.12428,
    "h": 278
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#30307B
secondary
#A9A95D
accent
#D454D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30307B

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

Preview Lab → · Contrast checker → · Palette generator →

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