#30339F#30339F

#30339F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.170 H 274.2°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#30339F
RGBrgb(48, 51, 159)
HSLhsl(238, 54%, 41%)
HSVhsv(238, 70%, 62%)
CMYKcmyk(69.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.11, 34.85, -58.83)
CIE-LCHlch(28.11, 68.38, 300.64°)
OKLaboklab(39.46% 0.0123 -0.1699)
OKLCHoklch(39.46% 0.17 274.2)
XYZxyz(8.6587, 5.4984, 33.3992)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30339F #9F9C30
analogous
#306B9F #30339F #64309F
triadic
#30339F #9F3033 #339F30
tetradic
#30339F #9F306B #9F9C30 #309F64
square
#30339F #9F306B #9F9C30 #309F64
split-complementary
#30339F #9F6430 #6B9F30
monochromatic
#141541 #222470 #30339F #4549C7 #7477D5

Accessibility & contrast

On white

10.00
#30339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#30339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30339F
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30339F#FFFFFF#000000##FFFFFF
##30339F1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #30339f;
/* rgb */ color: rgb(48, 51, 159);
/* oklch */ color: oklch(39.5% 0.170 274.2);
Tailwind
colors: {
  custom: {
    50: '#786bbc',
    500: '#30339f',
    950: '#000000',
  },
}
SCSS
$custom: #30339f;
$custom-light: #786bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#30339f",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 238.378,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39464,
    "c": 0.17038,
    "h": 274.2
  },
  "luminance": 0.05499
}

Semantic roles & 50–950 ramp

primary
#30339F
secondary
#BDBB6E
accent
#D94BDD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30339F

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

Preview Lab → · Contrast checker → · Palette generator →

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