#1B2A5E#1B2A5E

#1B2A5E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.095 H 268.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1B2A5E
RGBrgb(27, 42, 94)
HSLhsl(227, 55%, 24%)
HSVhsv(227, 71%, 37%)
CMYKcmyk(71.3%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.79, 13.17, -32.99)
CIE-LCHlch(18.79, 35.52, 291.76°)
OKLaboklab(30.47% -0.0029 -0.0947)
OKLCHoklch(30.47% 0.095 268.2)
XYZxyz(3.2996, 2.6968, 10.9341)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A5E #5E4F1B
analogous
#1B4B5E #1B2A5E #2D1B5E
triadic
#1B2A5E #5E1B2A #2A5E1B
tetradic
#1B2A5E #5E1B4B #5E4F1B #1B5E2D
square
#1B2A5E #5E1B4B #5E4F1B #1B5E2D
split-complementary
#1B2A5E #5E2D1B #4B5E1B
monochromatic
#070B18 #0D152E #1B2A5E #293F8E #3654BD

Accessibility & contrast

On white

13.64
#1B2A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2A5E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A5E#FFFFFF#000000##FFFFFF
##1B2A5E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3160
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2a5e;
/* rgb */ color: rgb(27, 42, 94);
/* oklch */ color: oklch(30.5% 0.095 268.2);
Tailwind
colors: {
  custom: {
    50: '#60638c',
    500: '#1b2a5e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a5e;
$custom-light: #60638c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a5e",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 226.567,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30472,
    "c": 0.09474,
    "h": 268.2
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#1B2A5E
secondary
#948141
accent
#BD49DF
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #1B2A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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