#30338C#30338C

#30338C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.145 H 275.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#30338C
RGBrgb(48, 51, 140)
HSLhsl(238, 49%, 37%)
HSVhsv(238, 66%, 55%)
CMYKcmyk(65.7%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.42, 28.09, -49.94)
CIE-LCHlch(26.42, 57.30, 299.36°)
OKLaboklab(37.71% 0.0139 -0.1439)
OKLCHoklch(37.71% 0.145 275.5)
XYZxyz(7.1348, 4.8889, 25.3735)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338C #8C8930
analogous
#30618C #30338C #5B308C
triadic
#30338C #8C3033 #338C30
tetradic
#30338C #8C3061 #8C8930 #308C5B
square
#30338C #8C3061 #8C8930 #308C5B
split-complementary
#30338C #8C5B30 #618C30
monochromatic
#111231 #20225E #30338C #4044BA #6A6ECC

Accessibility & contrast

On white

10.62
#30338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#30338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338C#FFFFFF#000000##FFFFFF
##30338C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #30338c;
/* rgb */ color: rgb(48, 51, 140);
/* oklch */ color: oklch(37.7% 0.145 275.5);
Tailwind
colors: {
  custom: {
    50: '#746bae',
    500: '#30338c',
    950: '#000000',
  },
}
SCSS
$custom: #30338c;
$custom-light: #746bae;
$custom-dark: #000000;
JSON
{
  "hex": "#30338c",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 238.043,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37705,
    "c": 0.14455,
    "h": 275.5
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#30338C
secondary
#B3B164
accent
#D44FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30338C

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

Preview Lab → · Contrast checker → · Palette generator →

#30338C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva