#18297B#18297B

#18297B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.140 H 268.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#18297B
RGBrgb(24, 41, 123)
HSLhsl(230, 67%, 29%)
HSVhsv(230, 80%, 48%)
CMYKcmyk(80.5%, 66.7%, 0%, 51.8%)
CIE-LABlab(20.86, 25.19, -48.41)
CIE-LCHlch(20.86, 54.57, 297.49°)
OKLaboklab(32.77% -0.0045 -0.1401)
OKLCHoklch(32.77% 0.14 268.2)
XYZxyz(4.7435, 3.2096, 19.1046)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18297B #7B6A18
analogous
#185B7B #18297B #39187B
triadic
#18297B #7B1829 #297B18
tetradic
#18297B #7B185B #7B6A18 #187B39
square
#18297B #7B185B #7B6A18 #187B39
split-complementary
#18297B #7B3918 #5B7B18
monochromatic
#05091A #0E1848 #18297B #223AAE #3652D8

Accessibility & contrast

On white

12.79
#18297B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18297B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18297B
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18297B#FFFFFF#000000##FFFFFF
##18297B1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18297b;
/* rgb */ color: rgb(24, 41, 123);
/* oklch */ color: oklch(32.8% 0.140 268.2);
Tailwind
colors: {
  custom: {
    50: '#6762a2',
    500: '#18297b',
    950: '#000000',
  },
}
SCSS
$custom: #18297b;
$custom-light: #6762a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18297b",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 123
  },
  "hsl": {
    "h": 229.697,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.14013,
    "h": 268.2
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#18297B
secondary
#B09C3F
accent
#CD3EEA
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18297B

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

Preview Lab → · Contrast checker → · Palette generator →

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