#18335E#18335E

#18335E is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.5% C 0.083 H 259.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#18335E
RGBrgb(24, 51, 94)
HSLhsl(217, 59%, 23%)
HSVhsv(217, 74%, 37%)
CMYKcmyk(74.5%, 45.7%, 0%, 63.1%)
CIE-LABlab(21.47, 6.11, -28.69)
CIE-LCHlch(21.47, 29.33, 282.02°)
OKLaboklab(32.48% -0.0154 -0.0819)
OKLCHoklch(32.48% 0.083 259.3)
XYZxyz(3.5802, 3.3696, 11.0492)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18335E #5E4318
analogous
#18565E #18335E #20185E
triadic
#18335E #5E1833 #335E18
tetradic
#18335E #5E1856 #5E4318 #185E20
square
#18335E #5E1856 #5E4318 #185E20
split-complementary
#18335E #5E2018 #565E18
monochromatic
#060D18 #0C192D #18335E #244D8F #3168C0

Accessibility & contrast

On white

12.54
#18335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#18335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18335E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18335E#FFFFFF#000000##FFFFFF
##18335E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#13305D
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18335e;
/* rgb */ color: rgb(24, 51, 94);
/* oklch */ color: oklch(32.5% 0.083 259.3);
Tailwind
colors: {
  custom: {
    50: '#5f6a8c',
    500: '#18335e',
    950: '#000000',
  },
}
SCSS
$custom: #18335e;
$custom-light: #5f6a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18335e",
  "rgb": {
    "r": 24,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 216.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32483,
    "c": 0.08339,
    "h": 259.3
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#18335E
secondary
#94733D
accent
#A645E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18335E

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

Preview Lab → · Contrast checker → · Palette generator →

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