#1B2F7B#1B2F7B

#1B2F7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.132 H 267.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1B2F7B
RGBrgb(27, 47, 123)
HSLhsl(228, 64%, 29%)
HSVhsv(228, 78%, 48%)
CMYKcmyk(78%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.64, 21.33, -45.50)
CIE-LCHlch(22.64, 50.25, 295.12°)
OKLaboklab(34.12% -0.0057 -0.1314)
OKLCHoklch(34.12% 0.132 267.5)
XYZxyz(5.0424, 3.6956, 19.1826)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F7B #7B671B
analogous
#1B5F7B #1B2F7B #371B7B
triadic
#1B2F7B #7B1B2F #2F7B1B
tetradic
#1B2F7B #7B1B5F #7B671B #1B7B37
square
#1B2F7B #7B1B5F #7B671B #1B7B37
split-complementary
#1B2F7B #7B371B #5F7B1B
monochromatic
#060A19 #101C49 #1B2F7B #2642AD #3C5CD4

Accessibility & contrast

On white

12.07
#1B2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F7B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F7B#FFFFFF#000000##FFFFFF
##1B2F7B1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2f7b;
/* rgb */ color: rgb(27, 47, 123);
/* oklch */ color: oklch(34.1% 0.132 267.5);
Tailwind
colors: {
  custom: {
    50: '#6767a2',
    500: '#1b2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f7b;
$custom-light: #6767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f7b",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 227.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34119,
    "c": 0.13152,
    "h": 267.5
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#1B2F7B
secondary
#AF9843
accent
#C441E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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