#1B255C#1B255C

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

Color values

HEX#1B255C
RGBrgb(27, 37, 92)
HSLhsl(231, 55%, 23%)
HSVhsv(231, 71%, 36%)
CMYKcmyk(70.7%, 59.8%, 0%, 63.9%)
CIE-LABlab(17.13, 16.02, -34.35)
CIE-LCHlch(17.13, 37.90, 295.00°)
OKLaboklab(29.17% 0.002 -0.0988)
OKLCHoklch(29.17% 0.099 271.2)
XYZxyz(3.0447, 2.3286, 10.4121)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B255C #5C521B
analogous
#1B455C #1B255C #311B5C
triadic
#1B255C #5C1B25 #255C1B
tetradic
#1B255C #5C1B45 #5C521B #1B5C31
square
#1B255C #5C1B45 #5C521B #1B5C31
split-complementary
#1B255C #5C311B #455C1B
monochromatic
#070A18 #0D122D #1B255C #29388B #374BBB

Accessibility & contrast

On white

14.33
#1B255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B255C
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B255C#FFFFFF#000000##FFFFFF
##1B255C1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b255c;
/* rgb */ color: rgb(27, 37, 92);
/* oklch */ color: oklch(29.2% 0.099 271.2);
Tailwind
colors: {
  custom: {
    50: '#605f8b',
    500: '#1b255c',
    950: '#000000',
  },
}
SCSS
$custom: #1b255c;
$custom-light: #605f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b255c",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 230.769,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29171,
    "c": 0.09879,
    "h": 271.2
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B255C

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

Preview Lab → · Contrast checker → · Palette generator →

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