#1B2F7C#1B2F7C

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

Color values

HEX#1B2F7C
RGBrgb(27, 47, 124)
HSLhsl(228, 64%, 30%)
HSVhsv(228, 78%, 49%)
CMYKcmyk(78.2%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.73, 21.73, -45.99)
CIE-LCHlch(22.73, 50.87, 295.29°)
OKLaboklab(34.21% -0.0057 -0.1328)
OKLCHoklch(34.21% 0.133 267.5)
XYZxyz(5.1053, 3.7207, 19.5140)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F7C #7C681B
analogous
#1B607C #1B2F7C #381B7C
triadic
#1B2F7C #7C1B2F #2F7C1B
tetradic
#1B2F7C #7C1B60 #7C681B #1B7C38
square
#1B2F7C #7C1B60 #7C681B #1B7C38
split-complementary
#1B2F7C #7C381B #607C1B
monochromatic
#050A19 #101C4A #1B2F7C #2642AE #3D5CD5

Accessibility & contrast

On white

12.04
#1B2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2F7C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F7C#FFFFFF#000000##FFFFFF
##1B2F7C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2f7c;
/* rgb */ color: rgb(27, 47, 124);
/* oklch */ color: oklch(34.2% 0.133 267.5);
Tailwind
colors: {
  custom: {
    50: '#6867a3',
    500: '#1b2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f7c;
$custom-light: #6867a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f7c",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 227.629,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.13297,
    "h": 267.5
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#1B2F7C
secondary
#B09943
accent
#C541E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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