#30338E#30338E

#30338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.147 H 275.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#30338E
RGBrgb(48, 51, 142)
HSLhsl(238, 49%, 37%)
HSVhsv(238, 66%, 56%)
CMYKcmyk(66.2%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.59, 28.81, -50.90)
CIE-LCHlch(26.59, 58.49, 299.51°)
OKLaboklab(37.88% 0.0138 -0.1467)
OKLCHoklch(37.88% 0.147 275.4)
XYZxyz(7.2836, 4.9484, 26.1572)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338E #8E8B30
analogous
#30628E #30338E #5C308E
triadic
#30338E #8E3033 #338E30
tetradic
#30338E #8E3062 #8E8B30 #308E5C
square
#30338E #8E3062 #8E8B30 #308E5C
split-complementary
#30338E #8E5C30 #628E30
monochromatic
#111233 #212360 #30338E #3F43BC #6B6ECD

Accessibility & contrast

On white

10.55
#30338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#30338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338E#FFFFFF#000000##FFFFFF
##30338E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #30338e;
/* rgb */ color: rgb(48, 51, 142);
/* oklch */ color: oklch(37.9% 0.147 275.4);
Tailwind
colors: {
  custom: {
    50: '#746bb0',
    500: '#30338e',
    950: '#000000',
  },
}
SCSS
$custom: #30338e;
$custom-light: #746bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#30338e",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 238.085,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37884,
    "c": 0.14735,
    "h": 275.4
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#30338E
secondary
#B4B265
accent
#D54FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #30338E

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

Preview Lab → · Contrast checker → · Palette generator →

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