#1B307C#1B307C

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

Color values

HEX#1B307C
RGBrgb(27, 48, 124)
HSLhsl(227, 64%, 30%)
HSVhsv(227, 78%, 49%)
CMYKcmyk(78.2%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.00, 21.03, -45.54)
CIE-LCHlch(23.00, 50.16, 294.79°)
OKLaboklab(34.42% -0.0065 -0.1315)
OKLCHoklch(34.42% 0.132 267.2)
XYZxyz(5.1458, 3.8016, 19.5275)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B307C #7C671B
analogous
#1B617C #1B307C #361B7C
triadic
#1B307C #7C1B30 #307C1B
tetradic
#1B307C #7C1B61 #7C671B #1B7C36
square
#1B307C #7C1B61 #7C671B #1B7C36
split-complementary
#1B307C #7C361B #617C1B
monochromatic
#050A19 #101D4A #1B307C #2643AE #3D5ED5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B307C#FFFFFF#000000##FFFFFF
##1B307C1.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)
#003C7F
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b307c;
/* rgb */ color: rgb(27, 48, 124);
/* oklch */ color: oklch(34.4% 0.132 267.2);
Tailwind
colors: {
  custom: {
    50: '#6868a3',
    500: '#1b307c',
    950: '#000000',
  },
}
SCSS
$custom: #1b307c;
$custom-light: #6868a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b307c",
  "rgb": {
    "r": 27,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 227.01,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34419,
    "c": 0.13166,
    "h": 267.2
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#1B307C
secondary
#B09843
accent
#C341E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B307C

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

Preview Lab → · Contrast checker → · Palette generator →

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