#1B2F7F#1B2F7F

#1B2F7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.137 H 267.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#1B2F7F
RGBrgb(27, 47, 127)
HSLhsl(228, 65%, 30%)
HSVhsv(228, 79%, 50%)
CMYKcmyk(78.7%, 63%, 0%, 50.2%)
CIE-LABlab(22.99, 22.93, -47.46)
CIE-LCHlch(22.99, 52.70, 295.79°)
OKLaboklab(34.49% -0.0057 -0.1371)
OKLCHoklch(34.49% 0.137 267.6)
XYZxyz(5.2979, 3.7978, 20.5284)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F7F #7F6B1B
analogous
#1B617F #1B2F7F #391B7F
triadic
#1B2F7F #7F1B2F #2F7F1B
tetradic
#1B2F7F #7F1B61 #7F6B1B #1B7F39
square
#1B2F7F #7F1B61 #7F6B1B #1B7F39
split-complementary
#1B2F7F #7F391B #617F1B
monochromatic
#060A1A #101C4D #1B2F7F #2642B1 #3E5DD6

Accessibility & contrast

On white

11.93
#1B2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1B2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F7F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F7F#FFFFFF#000000##FFFFFF
##1B2F7F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2f7f;
/* rgb */ color: rgb(27, 47, 127);
/* oklch */ color: oklch(34.5% 0.137 267.6);
Tailwind
colors: {
  custom: {
    50: '#6867a5',
    500: '#1b2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f7f;
$custom-light: #6867a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f7f",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 228,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34492,
    "c": 0.13726,
    "h": 267.6
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#1B2F7F
secondary
#B39C43
accent
#C640E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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