#1B2A7D#1B2A7D

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

Color values

HEX#1B2A7D
RGBrgb(27, 42, 125)
HSLhsl(231, 64%, 30%)
HSVhsv(231, 78%, 49%)
CMYKcmyk(78.4%, 66.4%, 0%, 51%)
CIE-LABlab(21.47, 25.61, -48.69)
CIE-LCHlch(21.47, 55.01, 297.75°)
OKLaboklab(33.31% -0.0023 -0.1408)
OKLCHoklch(33.31% 0.141 269.1)
XYZxyz(4.9804, 3.3691, 19.7859)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A7D #7D6E1B
analogous
#1B5B7D #1B2A7D #3D1B7D
triadic
#1B2A7D #7D1B2A #2A7D1B
tetradic
#1B2A7D #7D1B5B #7D6E1B #1B7D3D
square
#1B2A7D #7D1B5B #7D6E1B #1B7D3D
split-complementary
#1B2A7D #7D3D1B #5B7D1B
monochromatic
#050819 #10194B #1B2A7D #263BAF #3D55D5

Accessibility & contrast

On white

12.54
#1B2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A7D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A7D#FFFFFF#000000##FFFFFF
##1B2A7D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2a7d;
/* rgb */ color: rgb(27, 42, 125);
/* oklch */ color: oklch(33.3% 0.141 269.1);
Tailwind
colors: {
  custom: {
    50: '#6863a3',
    500: '#1b2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a7d;
$custom-light: #6863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a7d",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 230.816,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33307,
    "c": 0.14082,
    "h": 269.1
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#1B2A7D
secondary
#B1A043
accent
#CE40E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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