#1B255B#1B255B

#1B255B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.097 H 271.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1B255B
RGBrgb(27, 37, 91)
HSLhsl(231, 54%, 23%)
HSVhsv(231, 70%, 36%)
CMYKcmyk(70.3%, 59.3%, 0%, 64.3%)
CIE-LABlab(17.04, 15.61, -33.81)
CIE-LCHlch(17.04, 37.24, 294.79°)
OKLaboklab(29.08% 0.002 -0.0972)
OKLCHoklch(29.08% 0.097 271.2)
XYZxyz(3.0013, 2.3112, 10.1834)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B255B #5B511B
analogous
#1B455B #1B255B #311B5B
triadic
#1B255B #5B1B25 #255B1B
tetradic
#1B255B #5B1B45 #5B511B #1B5B31
square
#1B255B #5B1B45 #5B511B #1B5B31
split-complementary
#1B255B #5B311B #455B1B
monochromatic
#070A18 #0D122C #1B255B #29388A #374BB9

Accessibility & contrast

On white

14.36
#1B255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B255B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B255B#FFFFFF#000000##FFFFFF
##1B255B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b255b;
/* rgb */ color: rgb(27, 37, 91);
/* oklch */ color: oklch(29.1% 0.097 271.2);
Tailwind
colors: {
  custom: {
    50: '#605f8a',
    500: '#1b255b',
    950: '#000000',
  },
}
SCSS
$custom: #1b255b;
$custom-light: #605f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b255b",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 230.625,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29083,
    "c": 0.09722,
    "h": 271.2
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#1B255B
secondary
#918441
accent
#C74ADE
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #1B255B

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

Preview Lab → · Contrast checker → · Palette generator →

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