#1B256D#1B256D

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

Color values

HEX#1B256D
RGBrgb(27, 37, 109)
HSLhsl(233, 60%, 27%)
HSVhsv(233, 75%, 43%)
CMYKcmyk(75.2%, 66.1%, 0%, 57.3%)
CIE-LABlab(18.63, 22.80, -43.07)
CIE-LCHlch(18.63, 48.73, 297.90°)
OKLaboklab(30.76% 0.002 -0.1244)
OKLCHoklch(30.76% 0.124 270.9)
XYZxyz(3.8729, 2.6599, 14.7743)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B256D #6D631B
analogous
#1B4E6D #1B256D #3A1B6D
triadic
#1B256D #6D1B25 #256D1B
tetradic
#1B256D #6D1B4E #6D631B #1B6D3A
square
#1B256D #6D1B4E #6D631B #1B6D3A
split-complementary
#1B256D #6D3A1B #4E6D1B
monochromatic
#060819 #0F143C #1B256D #27369E #3548CD

Accessibility & contrast

On white

13.71
#1B256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B256D
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B256D#FFFFFF#000000##FFFFFF
##1B256D1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b256d;
/* rgb */ color: rgb(27, 37, 109);
/* oklch */ color: oklch(30.8% 0.124 270.9);
Tailwind
colors: {
  custom: {
    50: '#655f98',
    500: '#1b256d',
    950: '#000000',
  },
}
SCSS
$custom: #1b256d;
$custom-light: #655f98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b256d",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 232.683,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30755,
    "c": 0.12442,
    "h": 270.9
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#1B256D
secondary
#A29642
accent
#D044E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B256D

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

Preview Lab → · Contrast checker → · Palette generator →

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