#1B2A7E#1B2A7E

#1B2A7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 269.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#1B2A7E
RGBrgb(27, 42, 126)
HSLhsl(231, 65%, 30%)
HSVhsv(231, 79%, 49%)
CMYKcmyk(78.6%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.56, 26.01, -49.17)
CIE-LCHlch(21.56, 55.62, 297.88°)
OKLaboklab(33.41% -0.0023 -0.1422)
OKLCHoklch(33.41% 0.142 269.1)
XYZxyz(5.0446, 3.3947, 20.1240)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A7E #7E6F1B
analogous
#1B5C7E #1B2A7E #3D1B7E
triadic
#1B2A7E #7E1B2A #2A7E1B
tetradic
#1B2A7E #7E1B5C #7E6F1B #1B7E3D
square
#1B2A7E #7E1B5C #7E6F1B #1B7E3D
split-complementary
#1B2A7E #7E3D1B #5C7E1B
monochromatic
#050819 #10194C #1B2A7E #263BB0 #3E55D6

Accessibility & contrast

On white

12.51
#1B2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A7E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A7E#FFFFFF#000000##FFFFFF
##1B2A7E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2a7e;
/* rgb */ color: rgb(27, 42, 126);
/* oklch */ color: oklch(33.4% 0.142 269.1);
Tailwind
colors: {
  custom: {
    50: '#6963a4',
    500: '#1b2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a7e;
$custom-light: #6963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a7e",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 230.909,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.33406,
    "c": 0.14222,
    "h": 269.1
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#1B2A7E
secondary
#B2A143
accent
#CE40E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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