#1B2A7C#1B2A7C

#1B2A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.139 H 269.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1B2A7C
RGBrgb(27, 42, 124)
HSLhsl(231, 64%, 30%)
HSVhsv(231, 78%, 49%)
CMYKcmyk(78.2%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.37, 25.22, -48.21)
CIE-LCHlch(21.37, 54.41, 297.62°)
OKLaboklab(33.21% -0.0022 -0.1394)
OKLCHoklch(33.21% 0.139 269.1)
XYZxyz(4.9168, 3.3436, 19.4511)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A7C #7C6D1B
analogous
#1B5A7C #1B2A7C #3D1B7C
triadic
#1B2A7C #7C1B2A #2A7C1B
tetradic
#1B2A7C #7C1B5A #7C6D1B #1B7C3D
square
#1B2A7C #7C1B5A #7C6D1B #1B7C3D
split-complementary
#1B2A7C #7C3D1B #5A7C1B
monochromatic
#050919 #10194A #1B2A7C #263BAE #3D54D5

Accessibility & contrast

On white

12.58
#1B2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2A7C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A7C#FFFFFF#000000##FFFFFF
##1B2A7C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2a7c;
/* rgb */ color: rgb(27, 42, 124);
/* oklch */ color: oklch(33.2% 0.139 269.1);
Tailwind
colors: {
  custom: {
    50: '#6863a3',
    500: '#1b2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a7c;
$custom-light: #6863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a7c",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 230.722,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33209,
    "c": 0.13942,
    "h": 269.1
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#1B2A7C
secondary
#B09F43
accent
#CD41E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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