#1B255E#1B255E

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

Color values

HEX#1B255E
RGBrgb(27, 37, 94)
HSLhsl(231, 55%, 24%)
HSVhsv(231, 71%, 37%)
CMYKcmyk(71.3%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.29, 16.82, -35.40)
CIE-LCHlch(17.29, 39.20, 295.41°)
OKLaboklab(29.35% 0.0021 -0.1019)
OKLCHoklch(29.35% 0.102 271.2)
XYZxyz(3.1333, 2.3640, 10.8787)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B255E #5E541B
analogous
#1B465E #1B255E #321B5E
triadic
#1B255E #5E1B25 #255E1B
tetradic
#1B255E #5E1B46 #5E541B #1B5E32
square
#1B255E #5E1B46 #5E541B #1B5E32
split-complementary
#1B255E #5E321B #465E1B
monochromatic
#070918 #0D122E #1B255E #29388E #364ABD

Accessibility & contrast

On white

14.26
#1B255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B255E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B255E#FFFFFF#000000##FFFFFF
##1B255E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b255e;
/* rgb */ color: rgb(27, 37, 94);
/* oklch */ color: oklch(29.3% 0.102 271.2);
Tailwind
colors: {
  custom: {
    50: '#615f8c',
    500: '#1b255e',
    950: '#000000',
  },
}
SCSS
$custom: #1b255e;
$custom-light: #615f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b255e",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 231.045,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29348,
    "c": 0.1019,
    "h": 271.2
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#1B255E
secondary
#948741
accent
#C849DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B255E

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

Preview Lab → · Contrast checker → · Palette generator →

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