#1B256F#1B256F

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

Color values

HEX#1B256F
RGBrgb(27, 37, 111)
HSLhsl(233, 61%, 27%)
HSVhsv(233, 76%, 44%)
CMYKcmyk(75.7%, 66.7%, 0%, 56.5%)
CIE-LABlab(18.81, 23.59, -44.06)
CIE-LCHlch(18.81, 49.98, 298.17°)
OKLaboklab(30.95% 0.0019 -0.1273)
OKLCHoklch(30.95% 0.127 270.9)
XYZxyz(3.9818, 2.7034, 15.3478)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B256F #6F651B
analogous
#1B4F6F #1B256F #3B1B6F
triadic
#1B256F #6F1B25 #256F1B
tetradic
#1B256F #6F1B4F #6F651B #1B6F3B
square
#1B256F #6F1B4F #6F651B #1B6F3B
split-complementary
#1B256F #6F3B1B #4F6F1B
monochromatic
#060819 #0F153E #1B256F #2735A0 #3648CE

Accessibility & contrast

On white

13.63
#1B256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B256F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B256F#FFFFFF#000000##FFFFFF
##1B256F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b256f;
/* rgb */ color: rgb(27, 37, 111);
/* oklch */ color: oklch(31.0% 0.127 270.9);
Tailwind
colors: {
  custom: {
    50: '#655f99',
    500: '#1b256f',
    950: '#000000',
  },
}
SCSS
$custom: #1b256f;
$custom-light: #655f99;
$custom-dark: #000000;
JSON
{
  "hex": "#1b256f",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 232.857,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30951,
    "c": 0.1273,
    "h": 270.9
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#1B256F
secondary
#A49842
accent
#D144E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B256F

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

Preview Lab → · Contrast checker → · Palette generator →

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