#1B256E#1B256E

#1B256E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.126 H 270.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1B256E
RGBrgb(27, 37, 110)
HSLhsl(233, 61%, 27%)
HSVhsv(233, 75%, 43%)
CMYKcmyk(75.5%, 66.4%, 0%, 56.9%)
CIE-LABlab(18.72, 23.20, -43.57)
CIE-LCHlch(18.72, 49.36, 298.03°)
OKLaboklab(30.85% 0.002 -0.1258)
OKLCHoklch(30.85% 0.126 270.9)
XYZxyz(3.9271, 2.6815, 15.0595)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B256E #6E641B
analogous
#1B4F6E #1B256E #3B1B6E
triadic
#1B256E #6E1B25 #256E1B
tetradic
#1B256E #6E1B4F #6E641B #1B6E3B
square
#1B256E #6E1B4F #6E641B #1B6E3B
split-complementary
#1B256E #6E3B1B #4F6E1B
monochromatic
#060819 #0F143D #1B256E #27369F #3648CE

Accessibility & contrast

On white

13.67
#1B256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B256E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B256E#FFFFFF#000000##FFFFFF
##1B256E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b256e;
/* rgb */ color: rgb(27, 37, 110);
/* oklch */ color: oklch(30.9% 0.126 270.9);
Tailwind
colors: {
  custom: {
    50: '#655f98',
    500: '#1b256e',
    950: '#000000',
  },
}
SCSS
$custom: #1b256e;
$custom-light: #655f98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b256e",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 232.771,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30853,
    "c": 0.12587,
    "h": 270.9
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#1B256E
secondary
#A39742
accent
#D044E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B256E

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

Preview Lab → · Contrast checker → · Palette generator →

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