#1B2E7C#1B2E7C

#1B2E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.134 H 267.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1B2E7C
RGBrgb(27, 46, 124)
HSLhsl(228, 64%, 30%)
HSVhsv(228, 78%, 49%)
CMYKcmyk(78.2%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.45, 22.43, -46.44)
CIE-LCHlch(22.45, 51.58, 295.78°)
OKLaboklab(34.01% -0.005 -0.1342)
OKLCHoklch(34.01% 0.134 267.9)
XYZxyz(5.0658, 3.6417, 19.5008)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E7C #7C691B
analogous
#1B5F7C #1B2E7C #381B7C
triadic
#1B2E7C #7C1B2E #2E7C1B
tetradic
#1B2E7C #7C1B5F #7C691B #1B7C38
square
#1B2E7C #7C1B5F #7C691B #1B7C38
split-complementary
#1B2E7C #7C381B #5F7C1B
monochromatic
#050919 #101B4A #1B2E7C #2641AE #3D5AD5

Accessibility & contrast

On white

12.15
#1B2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B2E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E7C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E7C#FFFFFF#000000##FFFFFF
##1B2E7C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2e7c;
/* rgb */ color: rgb(27, 46, 124);
/* oklch */ color: oklch(34.0% 0.134 267.9);
Tailwind
colors: {
  custom: {
    50: '#6866a3',
    500: '#1b2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e7c;
$custom-light: #6866a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e7c",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 228.247,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34006,
    "c": 0.13427,
    "h": 267.9
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#1B2E7C
secondary
#B09B43
accent
#C741E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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