#1B255F#1B255F

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

Color values

HEX#1B255F
RGBrgb(27, 37, 95)
HSLhsl(231, 56%, 24%)
HSVhsv(231, 72%, 37%)
CMYKcmyk(71.6%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.38, 17.22, -35.93)
CIE-LCHlch(17.38, 39.84, 295.61°)
OKLaboklab(29.44% 0.0022 -0.1034)
OKLCHoklch(29.44% 0.103 271.2)
XYZxyz(3.1784, 2.3821, 11.1165)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B255F #5F551B
analogous
#1B475F #1B255F #331B5F
triadic
#1B255F #5F1B25 #255F1B
tetradic
#1B255F #5F1B47 #5F551B #1B5F33
square
#1B255F #5F1B47 #5F551B #1B5F33
split-complementary
#1B255F #5F331B #475F1B
monochromatic
#070918 #0D122F #1B255F #29388F #364ABE

Accessibility & contrast

On white

14.22
#1B255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B255F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B255F#FFFFFF#000000##FFFFFF
##1B255F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b255f;
/* rgb */ color: rgb(27, 37, 95);
/* oklch */ color: oklch(29.4% 0.103 271.2);
Tailwind
colors: {
  custom: {
    50: '#615f8d',
    500: '#1b255f',
    950: '#000000',
  },
}
SCSS
$custom: #1b255f;
$custom-light: #615f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b255f",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 231.176,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29438,
    "c": 0.10344,
    "h": 271.2
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#1B255F
secondary
#958841
accent
#C949DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B255F

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

Preview Lab → · Contrast checker → · Palette generator →

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