#1B256A#1B256A

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

Color values

HEX#1B256A
RGBrgb(27, 37, 106)
HSLhsl(232, 59%, 26%)
HSVhsv(232, 75%, 42%)
CMYKcmyk(74.5%, 65.1%, 0%, 58.4%)
CIE-LABlab(18.35, 21.62, -41.57)
CIE-LCHlch(18.35, 46.86, 297.47°)
OKLaboklab(30.46% 0.0021 -0.12)
OKLCHoklch(30.46% 0.12 271)
XYZxyz(3.7142, 2.5964, 13.9383)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B256A #6A601B
analogous
#1B4C6A #1B256A #381B6A
triadic
#1B256A #6A1B25 #256A1B
tetradic
#1B256A #6A1B4C #6A601B #1B6A38
square
#1B256A #6A1B4C #6A601B #1B6A38
split-complementary
#1B256A #6A381B #4C6A1B
monochromatic
#060918 #0F1439 #1B256A #27369B #3447CB

Accessibility & contrast

On white

13.82
#1B256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B256A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B256A#FFFFFF#000000##FFFFFF
##1B256A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b256a;
/* rgb */ color: rgb(27, 37, 106);
/* oklch */ color: oklch(30.5% 0.120 271.0);
Tailwind
colors: {
  custom: {
    50: '#645f95',
    500: '#1b256a',
    950: '#000000',
  },
}
SCSS
$custom: #1b256a;
$custom-light: #645f95;
$custom-dark: #000000;
JSON
{
  "hex": "#1b256a",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 232.405,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30464,
    "c": 0.12002,
    "h": 271
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#1B256A
secondary
#9F9342
accent
#CF45E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B256A

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

Preview Lab → · Contrast checker → · Palette generator →

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