#18297F#18297F

#18297F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.146 H 268.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#18297F
RGBrgb(24, 41, 127)
HSLhsl(230, 68%, 30%)
HSVhsv(230, 81%, 50%)
CMYKcmyk(81.1%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.25, 26.77, -50.31)
CIE-LCHlch(21.25, 56.99, 298.02°)
OKLaboklab(33.17% -0.0047 -0.1456)
OKLCHoklch(33.17% 0.146 268.2)
XYZxyz(4.9991, 3.3118, 20.4503)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18297F #7F6E18
analogous
#185D7F #18297F #3B187F
triadic
#18297F #7F1829 #297F18
tetradic
#18297F #7F185D #7F6E18 #187F3B
square
#18297F #7F185D #7F6E18 #187F3B
split-complementary
#18297F #7F3B18 #5D7F18
monochromatic
#05081A #0E184C #18297F #223AB2 #3853D9

Accessibility & contrast

On white

12.63
#18297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18297F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18297F#FFFFFF#000000##FFFFFF
##18297F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18297f;
/* rgb */ color: rgb(24, 41, 127);
/* oklch */ color: oklch(33.2% 0.146 268.2);
Tailwind
colors: {
  custom: {
    50: '#6862a5',
    500: '#18297f',
    950: '#000000',
  },
}
SCSS
$custom: #18297f;
$custom-light: #6862a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18297f",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 230.097,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3317,
    "c": 0.14569,
    "h": 268.2
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#18297F
secondary
#B3A03F
accent
#CE3DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18297F

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

Preview Lab → · Contrast checker → · Palette generator →

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