#30227F#30227F

#30227F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.148 H 281.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#30227F
RGBrgb(48, 34, 127)
HSLhsl(249, 58%, 32%)
HSVhsv(249, 73%, 50%)
CMYKcmyk(62.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.22, 34.35, -50.29)
CIE-LCHlch(21.22, 60.91, 304.33°)
OKLaboklab(33.58% 0.0301 -0.1449)
OKLCHoklch(33.58% 0.148 281.7)
XYZxyz(5.6205, 3.3043, 20.4162)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30227F #717F22
analogous
#22437F #30227F #5F227F
triadic
#30227F #7F3022 #227F30
tetradic
#30227F #7F2243 #717F22 #227F5F
square
#30227F #7F2243 #717F22 #227F5F
split-complementary
#30227F #7F5F22 #437F22
monochromatic
#0C081E #1E154F #30227F #422FAF #604CCF

Accessibility & contrast

On white

12.64
#30227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#30227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30227F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30227F#FFFFFF#000000##FFFFFF
##30227F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30227f;
/* rgb */ color: rgb(48, 34, 127);
/* oklch */ color: oklch(33.6% 0.148 281.7);
Tailwind
colors: {
  custom: {
    50: '#735fa5',
    500: '#30227f',
    950: '#000000',
  },
}
SCSS
$custom: #30227f;
$custom-light: #735fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#30227f",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 249.032,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33576,
    "c": 0.14804,
    "h": 281.7
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#30227F
secondary
#A2B24B
accent
#E147CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30227F

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

Preview Lab → · Contrast checker → · Palette generator →

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