#1B185E#1B185E

#1B185E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.120 H 276.5°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#1B185E
RGBrgb(27, 24, 94)
HSLhsl(243, 59%, 23%)
HSVhsv(243, 74%, 37%)
CMYKcmyk(71.3%, 74.5%, 0%, 63.1%)
CIE-LABlab(13.79, 25.97, -41.12)
CIE-LCHlch(13.79, 48.63, 302.28°)
OKLaboklab(26.78% 0.0136 -0.1187)
OKLCHoklch(26.78% 0.12 276.5)
XYZxyz(2.7983, 1.6942, 10.7670)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B185E #5B5E18
analogous
#18385E #1B185E #3E185E
triadic
#1B185E #5E1B18 #185E1B
tetradic
#1B185E #5E1838 #5B5E18 #185E3E
square
#1B185E #5E1838 #5B5E18 #185E3E
split-complementary
#1B185E #5E3E18 #385E18
monochromatic
#070618 #0D0C2D #1B185E #29248F #3731C0

Accessibility & contrast

On white

15.69
#1B185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1B185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B185E
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B185E#FFFFFF#000000##FFFFFF
##1B185E1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b185e;
/* rgb */ color: rgb(27, 24, 94);
/* oklch */ color: oklch(26.8% 0.120 276.5);
Tailwind
colors: {
  custom: {
    50: '#62558c',
    500: '#1b185e',
    950: '#000000',
  },
}
SCSS
$custom: #1b185e;
$custom-light: #62558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b185e",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 242.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26781,
    "c": 0.11952,
    "h": 276.5
  },
  "luminance": 0.01694
}

Semantic roles & 50–950 ramp

primary
#1B185E
secondary
#91943D
accent
#E345DC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1B185E

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

Preview Lab → · Contrast checker → · Palette generator →

#1B185E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva