#1B2B7E#1B2B7E

#1B2B7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 268.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#1B2B7E
RGBrgb(27, 43, 126)
HSLhsl(230, 65%, 30%)
HSVhsv(230, 79%, 49%)
CMYKcmyk(78.6%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.82, 25.32, -48.73)
CIE-LCHlch(21.82, 54.92, 297.45°)
OKLaboklab(33.6% -0.003 -0.1409)
OKLCHoklch(33.6% 0.141 268.8)
XYZxyz(5.0805, 3.4666, 20.1360)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2B7E #7E6E1B
analogous
#1B5D7E #1B2B7E #3C1B7E
triadic
#1B2B7E #7E1B2B #2B7E1B
tetradic
#1B2B7E #7E1B5D #7E6E1B #1B7E3C
square
#1B2B7E #7E1B5D #7E6E1B #1B7E3C
split-complementary
#1B2B7E #7E3C1B #5D7E1B
monochromatic
#050919 #101A4C #1B2B7E #263CB0 #3E56D6

Accessibility & contrast

On white

12.40
#1B2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2B7E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2B7E#FFFFFF#000000##FFFFFF
##1B2B7E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2b7e;
/* rgb */ color: rgb(27, 43, 126);
/* oklch */ color: oklch(33.6% 0.141 268.8);
Tailwind
colors: {
  custom: {
    50: '#6864a4',
    500: '#1b2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2b7e;
$custom-light: #6864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2b7e",
  "rgb": {
    "r": 27,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 230.303,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.336,
    "c": 0.14096,
    "h": 268.8
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#1B2B7E
secondary
#B2A043
accent
#CD40E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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