#1B256B#1B256B

#1B256B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.121 H 271.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1B256B
RGBrgb(27, 37, 107)
HSLhsl(233, 60%, 26%)
HSVhsv(233, 75%, 42%)
CMYKcmyk(74.8%, 65.4%, 0%, 58%)
CIE-LABlab(18.44, 22.01, -42.08)
CIE-LCHlch(18.44, 47.49, 297.62°)
OKLaboklab(30.56% 0.0021 -0.1215)
OKLCHoklch(30.56% 0.121 271)
XYZxyz(3.7665, 2.6173, 14.2138)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B256B #6B611B
analogous
#1B4D6B #1B256B #391B6B
triadic
#1B256B #6B1B25 #256B1B
tetradic
#1B256B #6B1B4D #6B611B #1B6B39
square
#1B256B #6B1B4D #6B611B #1B6B39
split-complementary
#1B256B #6B391B #4D6B1B
monochromatic
#060818 #0F143A #1B256B #27369C #3547CC

Accessibility & contrast

On white

13.78
#1B256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B256B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B256B#FFFFFF#000000##FFFFFF
##1B256B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b256b;
/* rgb */ color: rgb(27, 37, 107);
/* oklch */ color: oklch(30.6% 0.121 271.0);
Tailwind
colors: {
  custom: {
    50: '#645f96',
    500: '#1b256b',
    950: '#000000',
  },
}
SCSS
$custom: #1b256b;
$custom-light: #645f96;
$custom-dark: #000000;
JSON
{
  "hex": "#1b256b",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 232.5,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.12149,
    "h": 271
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#1B256B
secondary
#A09442
accent
#CF45E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B256B

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

Preview Lab → · Contrast checker → · Palette generator →

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