#18258F#18258F

#18258F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 268.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#18258F
RGBrgb(24, 37, 143)
HSLhsl(233, 71%, 33%)
HSVhsv(233, 83%, 56%)
CMYKcmyk(83.2%, 74.1%, 0%, 43.9%)
CIE-LABlab(21.94, 35.48, -59.20)
CIE-LCHlch(21.94, 69.02, 300.93°)
OKLaboklab(34.17% -0.0042 -0.1715)
OKLCHoklch(34.17% 0.172 268.6)
XYZxyz(5.9945, 3.4998, 26.3409)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18258F #8F8218
analogous
#18618F #18258F #46188F
triadic
#18258F #8F1825 #258F18
tetradic
#18258F #8F1861 #8F8218 #188F46
square
#18258F #8F1861 #8F8218 #188F46
split-complementary
#18258F #8F4618 #618F18
monochromatic
#060A26 #0F175B #18258F #2133C3 #4253DF

Accessibility & contrast

On white

12.35
#18258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#18258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18258F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18258F#FFFFFF#000000##FFFFFF
##18258F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18258f;
/* rgb */ color: rgb(24, 37, 143);
/* oklch */ color: oklch(34.2% 0.172 268.6);
Tailwind
colors: {
  custom: {
    50: '#6d60b1',
    500: '#18258f',
    950: '#000000',
  },
}
SCSS
$custom: #18258f;
$custom-light: #6d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18258f",
  "rgb": {
    "r": 24,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 233.445,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.1716,
    "h": 268.6
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#18258F
secondary
#C0B243
accent
#DA3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18258F

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

Preview Lab → · Contrast checker → · Palette generator →

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