#30336F#30336F

#30336F is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.102 H 277.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#30336F
RGBrgb(48, 51, 111)
HSLhsl(237, 40%, 31%)
HSVhsv(237, 57%, 44%)
CMYKcmyk(56.8%, 54.1%, 0%, 56.5%)
CIE-LABlab(24.14, 17.66, -35.35)
CIE-LCHlch(24.14, 39.52, 296.54°)
OKLaboklab(35.3% 0.0136 -0.101)
OKLCHoklch(35.3% 0.102 277.7)
XYZxyz(5.2711, 4.1434, 15.5578)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30336F #6F6C30
analogous
#30526F #30336F #4C306F
triadic
#30336F #6F3033 #336F30
tetradic
#30336F #6F3052 #6F6C30 #306F4C
square
#30336F #6F3052 #6F6C30 #306F4C
split-complementary
#30336F #6F4C30 #526F30
monochromatic
#0B0C1A #1E1F44 #30336F #42479A #5F64BA

Accessibility & contrast

On white

11.48
#30336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#30336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30336F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30336F#FFFFFF#000000##FFFFFF
##30336F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#0A376E
Tritanopia (blue-blind)
#12404C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #30336f;
/* rgb */ color: rgb(48, 51, 111);
/* oklch */ color: oklch(35.3% 0.102 277.7);
Tailwind
colors: {
  custom: {
    50: '#6e6a99',
    500: '#30336f',
    950: '#000000',
  },
}
SCSS
$custom: #30336f;
$custom-light: #6e6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#30336f",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 237.143,
    "s": 39.623,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35295,
    "c": 0.10188,
    "h": 277.7
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#30336F
secondary
#A09D5B
accent
#CA58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #30336F

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

Preview Lab → · Contrast checker → · Palette generator →

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