#1B2F5F#1B2F5F

#1B2F5F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.089 H 264.8°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1B2F5F
RGBrgb(27, 47, 95)
HSLhsl(222, 56%, 24%)
HSVhsv(222, 72%, 37%)
CMYKcmyk(71.6%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.41, 9.94, -31.03)
CIE-LCHlch(20.41, 32.59, 287.76°)
OKLaboklab(31.73% -0.0081 -0.0889)
OKLCHoklch(31.73% 0.089 264.8)
XYZxyz(3.5333, 3.0919, 11.2348)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F5F #5F4B1B
analogous
#1B515F #1B2F5F #291B5F
triadic
#1B2F5F #5F1B2F #2F5F1B
tetradic
#1B2F5F #5F1B51 #5F4B1B #1B5F29
square
#1B2F5F #5F1B51 #5F4B1B #1B5F29
split-complementary
#1B2F5F #5F291B #515F1B
monochromatic
#070C18 #0D172F #1B2F5F #29478F #365EBE

Accessibility & contrast

On white

12.98
#1B2F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B2F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F5F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F5F#FFFFFF#000000##FFFFFF
##1B2F5F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163461
Deuteranopia (green-blind)
#082E5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2f5f;
/* rgb */ color: rgb(27, 47, 95);
/* oklch */ color: oklch(31.7% 0.089 264.8);
Tailwind
colors: {
  custom: {
    50: '#60678d',
    500: '#1b2f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f5f;
$custom-light: #60678d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f5f",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 222.353,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31731,
    "c": 0.08923,
    "h": 264.8
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#1B2F5F
secondary
#957C41
accent
#B349DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1B2F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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