#30237B#30237B

#30237B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.142 H 282.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#30237B
RGBrgb(48, 35, 123)
HSLhsl(249, 56%, 31%)
HSVhsv(249, 72%, 48%)
CMYKcmyk(61%, 71.5%, 0%, 51.8%)
CIE-LABlab(21.06, 32.42, -48.03)
CIE-LCHlch(21.06, 57.94, 304.02°)
OKLaboklab(33.34% 0.03 -0.1383)
OKLCHoklch(33.34% 0.142 282.2)
XYZxyz(5.3940, 3.2601, 19.0801)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30237B #6E7B23
analogous
#23427B #30237B #5C237B
triadic
#30237B #7B3023 #237B30
tetradic
#30237B #7B2342 #6E7B23 #237B5C
square
#30237B #7B2342 #6E7B23 #237B5C
split-complementary
#30237B #7B5C23 #427B23
monochromatic
#0B081C #1D154B #30237B #4331AB #5F4CCC

Accessibility & contrast

On white

12.71
#30237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#30237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30237B
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30237B#FFFFFF#000000##FFFFFF
##30237B1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#013A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30237b;
/* rgb */ color: rgb(48, 35, 123);
/* oklch */ color: oklch(33.3% 0.142 282.2);
Tailwind
colors: {
  custom: {
    50: '#725fa2',
    500: '#30237b',
    950: '#000000',
  },
}
SCSS
$custom: #30237b;
$custom-light: #725fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#30237b",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 248.864,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.14153,
    "h": 282.2
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#30237B
secondary
#9FAE4C
accent
#DF49C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #30237B

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

Preview Lab → · Contrast checker → · Palette generator →

#30237B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva