#1B285F#1B285F

#1B285F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.099 H 269.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#1B285F
RGBrgb(27, 40, 95)
HSLhsl(229, 56%, 24%)
HSVhsv(229, 72%, 37%)
CMYKcmyk(71.6%, 57.9%, 0%, 62.7%)
CIE-LABlab(18.26, 15.04, -34.50)
CIE-LCHlch(18.26, 37.63, 293.55°)
OKLaboklab(30.1% -0.0008 -0.0992)
OKLCHoklch(30.1% 0.099 269.5)
XYZxyz(3.2756, 2.5765, 11.1489)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B285F #5F521B
analogous
#1B4A5F #1B285F #301B5F
triadic
#1B285F #5F1B28 #285F1B
tetradic
#1B285F #5F1B4A #5F521B #1B5F30
square
#1B285F #5F1B4A #5F521B #1B5F30
split-complementary
#1B285F #5F301B #4A5F1B
monochromatic
#070A18 #0D142F #1B285F #293C8F #3650BE

Accessibility & contrast

On white

13.86
#1B285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B285F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B285F#FFFFFF#000000##FFFFFF
##1B285F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023061
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b285f;
/* rgb */ color: rgb(27, 40, 95);
/* oklch */ color: oklch(30.1% 0.099 269.5);
Tailwind
colors: {
  custom: {
    50: '#61618d',
    500: '#1b285f',
    950: '#000000',
  },
}
SCSS
$custom: #1b285f;
$custom-light: #61618d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b285f",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 228.529,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30101,
    "c": 0.09916,
    "h": 269.5
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#1B285F
secondary
#958541
accent
#C249DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #1B285F

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

Preview Lab → · Contrast checker → · Palette generator →

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