#1B2279#1B2279

#1B2279 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.145 H 271.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1B2279
RGBrgb(27, 34, 121)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 47%)
CMYKcmyk(77.7%, 71.9%, 0%, 52.5%)
CIE-LABlab(19.04, 29.48, -50.12)
CIE-LCHlch(19.04, 58.15, 300.47°)
OKLaboklab(31.42% 0.003 -0.145)
OKLCHoklch(31.42% 0.145 271.2)
XYZxyz(4.4740, 2.7571, 18.3818)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2279 #79721B
analogous
#1B5179 #1B2279 #431B79
triadic
#1B2279 #791B22 #22791B
tetradic
#1B2279 #791B51 #79721B #1B7943
square
#1B2279 #791B51 #79721B #1B7943
split-complementary
#1B2279 #79431B #51791B
monochromatic
#060719 #101447 #1B2279 #2630AB #3B46D3

Accessibility & contrast

On white

13.53
#1B2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2279
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2279#FFFFFF#000000##FFFFFF
##1B22791.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2279;
/* rgb */ color: rgb(27, 34, 121);
/* oklch */ color: oklch(31.4% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1b2279',
    950: '#000000',
  },
}
SCSS
$custom: #1b2279;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2279",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 235.532,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31421,
    "c": 0.14505,
    "h": 271.2
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#1B2279
secondary
#ADA543
accent
#DA41E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B2279

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

Preview Lab → · Contrast checker → · Palette generator →

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