#1B245C#1B245C

#1B245C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.100 H 271.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#1B245C
RGBrgb(27, 36, 92)
HSLhsl(232, 55%, 23%)
HSVhsv(232, 71%, 36%)
CMYKcmyk(70.7%, 60.9%, 0%, 63.9%)
CIE-LABlab(16.83, 16.75, -34.82)
CIE-LCHlch(16.83, 38.64, 295.68°)
OKLaboklab(28.95% 0.003 -0.1002)
OKLCHoklch(28.95% 0.1 271.7)
XYZxyz(3.0140, 2.2672, 10.4019)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B245C #5C531B
analogous
#1B445C #1B245C #321B5C
triadic
#1B245C #5C1B24 #245C1B
tetradic
#1B245C #5C1B44 #5C531B #1B5C32
square
#1B245C #5C1B44 #5C531B #1B5C32
split-complementary
#1B245C #5C321B #445C1B
monochromatic
#070918 #0D112D #1B245C #29378B #3749BB

Accessibility & contrast

On white

14.45
#1B245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B245C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B245C#FFFFFF#000000##FFFFFF
##1B245C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b245c;
/* rgb */ color: rgb(27, 36, 92);
/* oklch */ color: oklch(29.0% 0.100 271.7);
Tailwind
colors: {
  custom: {
    50: '#605e8b',
    500: '#1b245c',
    950: '#000000',
  },
}
SCSS
$custom: #1b245c;
$custom-light: #605e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b245c",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 231.692,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28951,
    "c": 0.10023,
    "h": 271.7
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#1B245C
secondary
#928741
accent
#C94ADE
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #1B245C

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

Preview Lab → · Contrast checker → · Palette generator →

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