#1B2E9E#1B2E9E

#1B2E9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.180 H 267.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#1B2E9E
RGBrgb(27, 46, 158)
HSLhsl(231, 71%, 36%)
HSVhsv(231, 83%, 62%)
CMYKcmyk(82.9%, 70.9%, 0%, 38%)
CIE-LABlab(25.73, 35.53, -62.18)
CIE-LCHlch(25.73, 71.62, 299.75°)
OKLaboklab(37.41% -0.0068 -0.1802)
OKLCHoklch(37.41% 0.18 267.9)
XYZxyz(7.5984, 4.6547, 32.8391)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E9E #9E8B1B
analogous
#1B709E #1B2E9E #4A1B9E
triadic
#1B2E9E #9E1B2E #2E9E1B
tetradic
#1B2E9E #9E1B70 #9E8B1B #1B9E4A
square
#1B2E9E #9E1B70 #9E8B1B #1B9E4A
split-complementary
#1B2E9E #9E4A1B #709E1B
monochromatic
#091035 #121F6A #1B2E9E #243DD2 #5267E1

Accessibility & contrast

On white

10.87
#1B2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1B2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E9E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E9E#FFFFFF#000000##FFFFFF
##1B2E9E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b2e9e;
/* rgb */ color: rgb(27, 46, 158);
/* oklch */ color: oklch(37.4% 0.180 267.9);
Tailwind
colors: {
  custom: {
    50: '#7167bc',
    500: '#1b2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e9e;
$custom-light: #7167bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e9e",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 231.298,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37407,
    "c": 0.18031,
    "h": 267.9
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#1B2E9E
secondary
#C4B351
accent
#D43AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1B2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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