#1B2897#1B2897

#1B2897 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.178 H 268.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#1B2897
RGBrgb(27, 40, 151)
HSLhsl(234, 70%, 35%)
HSVhsv(234, 82%, 59%)
CMYKcmyk(82.1%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.62, 36.74, -61.37)
CIE-LCHlch(23.62, 71.53, 300.91°)
OKLaboklab(35.67% -0.0036 -0.1778)
OKLCHoklch(35.67% 0.178 268.8)
XYZxyz(6.7948, 3.9842, 29.6831)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2897 #978A1B
analogous
#1B6697 #1B2897 #4C1B97
triadic
#1B2897 #971B28 #28971B
tetradic
#1B2897 #971B66 #978A1B #1B974C
square
#1B2897 #971B66 #978A1B #1B974C
split-complementary
#1B2897 #974C1B #66971B
monochromatic
#080C2F #121A63 #1B2897 #2436CB #4D5DDF

Accessibility & contrast

On white

11.69
#1B2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1B2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2897
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2897#FFFFFF#000000##FFFFFF
##1B28971.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2897;
/* rgb */ color: rgb(27, 40, 151);
/* oklch */ color: oklch(35.7% 0.178 268.8);
Tailwind
colors: {
  custom: {
    50: '#7063b7',
    500: '#1b2897',
    950: '#000000',
  },
}
SCSS
$custom: #1b2897;
$custom-light: #7063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2897",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 233.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.17786,
    "h": 268.8
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#1B2897
secondary
#C1B54C
accent
#DA3BEC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1B2897

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

Preview Lab → · Contrast checker → · Palette generator →

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