#1B2A5F#1B2A5F

#1B2A5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.096 H 268.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#1B2A5F
RGBrgb(27, 42, 95)
HSLhsl(227, 56%, 24%)
HSVhsv(227, 72%, 37%)
CMYKcmyk(71.6%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.86, 13.58, -33.52)
CIE-LCHlch(18.86, 36.17, 292.05°)
OKLaboklab(30.56% -0.0028 -0.0963)
OKLCHoklch(30.56% 0.096 268.3)
XYZxyz(3.3448, 2.7148, 11.1720)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A5F #5F501B
analogous
#1B4C5F #1B2A5F #2E1B5F
triadic
#1B2A5F #5F1B2A #2A5F1B
tetradic
#1B2A5F #5F1B4C #5F501B #1B5F2E
square
#1B2A5F #5F1B4C #5F501B #1B5F2E
split-complementary
#1B2A5F #5F2E1B #4C5F1B
monochromatic
#070B18 #0D152F #1B2A5F #293F8F #3654BE

Accessibility & contrast

On white

13.61
#1B2A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B2A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A5F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A5F#FFFFFF#000000##FFFFFF
##1B2A5F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093161
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2a5f;
/* rgb */ color: rgb(27, 42, 95);
/* oklch */ color: oklch(30.6% 0.096 268.3);
Tailwind
colors: {
  custom: {
    50: '#61638d',
    500: '#1b2a5f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a5f;
$custom-light: #61638d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a5f",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 226.765,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.0963,
    "h": 268.3
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#1B2A5F
secondary
#958241
accent
#BE49DF
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #1B2A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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