#181B68#181B68

#181B68 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.131 H 272.6°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#181B68
RGBrgb(24, 27, 104)
HSLhsl(238, 63%, 25%)
HSVhsv(238, 77%, 41%)
CMYKcmyk(76.9%, 74%, 0%, 59.2%)
CIE-LABlab(15.37, 27.36, -45.16)
CIE-LCHlch(15.37, 52.80, 301.21°)
OKLaboklab(28.18% 0.0059 -0.1306)
OKLCHoklch(28.18% 0.131 272.6)
XYZxyz(3.2665, 1.9772, 13.3035)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B68 #686518
analogous
#184368 #181B68 #3D1868
triadic
#181B68 #68181B #1B6818
tetradic
#181B68 #681843 #686518 #18683D
square
#181B68 #681843 #686518 #18683D
split-complementary
#181B68 #683D18 #436818
monochromatic
#060619 #0D0E36 #181B68 #23289A #2F35CB

Accessibility & contrast

On white

15.05
#181B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B68
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B68#FFFFFF#000000##FFFFFF
##181B681.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#00303F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181b68;
/* rgb */ color: rgb(24, 27, 104);
/* oklch */ color: oklch(28.2% 0.131 272.6);
Tailwind
colors: {
  custom: {
    50: '#635894',
    500: '#181b68',
    950: '#000000',
  },
}
SCSS
$custom: #181b68;
$custom-light: #635894;
$custom-dark: #000000;
JSON
{
  "hex": "#181b68",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 237.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28178,
    "c": 0.13076,
    "h": 272.6
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#181B68
secondary
#9E9A3E
accent
#DF42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181B68

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

Preview Lab → · Contrast checker → · Palette generator →

#181B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva