#18308E#18308E

#18308E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.158 H 266.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#18308E
RGBrgb(24, 48, 142)
HSLhsl(228, 71%, 33%)
HSVhsv(228, 83%, 56%)
CMYKcmyk(83.1%, 66.2%, 0%, 44.3%)
CIE-LABlab(24.51, 27.88, -54.35)
CIE-LCHlch(24.51, 61.08, 297.15°)
OKLaboklab(36.01% -0.0092 -0.1574)
OKLCHoklch(36.01% 0.158 266.7)
XYZxyz(6.3144, 4.2603, 26.0755)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18308E #8E7618
analogous
#186B8E #18308E #3B188E
triadic
#18308E #8E1830 #308E18
tetradic
#18308E #8E186B #8E7618 #188E3B
square
#18308E #8E186B #8E7618 #188E3B
split-complementary
#18308E #8E3B18 #6B8E18
monochromatic
#060D25 #0F1E5A #18308E #2142C2 #4161DF

Accessibility & contrast

On white

11.34
#18308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#18308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18308E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18308E#FFFFFF#000000##FFFFFF
##18308E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #18308e;
/* rgb */ color: rgb(24, 48, 142);
/* oklch */ color: oklch(36.0% 0.158 266.7);
Tailwind
colors: {
  custom: {
    50: '#6c68b0',
    500: '#18308e',
    950: '#000000',
  },
}
SCSS
$custom: #18308e;
$custom-light: #6c68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18308e",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 227.797,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36008,
    "c": 0.15764,
    "h": 266.7
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#18308E
secondary
#C0A642
accent
#C93AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #18308E

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

Preview Lab → · Contrast checker → · Palette generator →

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