#1B255D#1B255D

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

Color values

HEX#1B255D
RGBrgb(27, 37, 93)
HSLhsl(231, 55%, 24%)
HSVhsv(231, 71%, 36%)
CMYKcmyk(71%, 60.2%, 0%, 63.5%)
CIE-LABlab(17.21, 16.42, -34.88)
CIE-LCHlch(17.21, 38.55, 295.21°)
OKLaboklab(29.26% 0.0021 -0.1003)
OKLCHoklch(29.26% 0.1 271.2)
XYZxyz(3.0887, 2.3462, 10.6439)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B255D #5D531B
analogous
#1B465D #1B255D #321B5D
triadic
#1B255D #5D1B25 #255D1B
tetradic
#1B255D #5D1B46 #5D531B #1B5D32
square
#1B255D #5D1B46 #5D531B #1B5D32
split-complementary
#1B255D #5D321B #465D1B
monochromatic
#070918 #0D122E #1B255D #29388C #374BBC

Accessibility & contrast

On white

14.29
#1B255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1B255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B255D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B255D#FFFFFF#000000##FFFFFF
##1B255D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b255d;
/* rgb */ color: rgb(27, 37, 93);
/* oklch */ color: oklch(29.3% 0.100 271.2);
Tailwind
colors: {
  custom: {
    50: '#605f8b',
    500: '#1b255d',
    950: '#000000',
  },
}
SCSS
$custom: #1b255d;
$custom-light: #605f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b255d",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 230.909,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29259,
    "c": 0.10035,
    "h": 271.2
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#1B255D
secondary
#938641
accent
#C849DE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B255D

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

Preview Lab → · Contrast checker → · Palette generator →

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