#1B297E#1B297E

#1B297E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.143 H 269.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1B297E
RGBrgb(27, 41, 126)
HSLhsl(232, 65%, 30%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(78.6%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.30, 26.69, -49.59)
CIE-LCHlch(21.30, 56.32, 298.29°)
OKLaboklab(33.22% -0.0017 -0.1435)
OKLCHoklch(33.22% 0.143 269.3)
XYZxyz(5.0095, 3.3247, 20.1123)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B297E #7E701B
analogous
#1B5B7E #1B297E #3E1B7E
triadic
#1B297E #7E1B29 #297E1B
tetradic
#1B297E #7E1B5B #7E701B #1B7E3E
square
#1B297E #7E1B5B #7E701B #1B7E3E
split-complementary
#1B297E #7E3E1B #5B7E1B
monochromatic
#050819 #10194C #1B297E #2639B0 #3E53D6

Accessibility & contrast

On white

12.61
#1B297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B297E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B297E#FFFFFF#000000##FFFFFF
##1B297E1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b297e;
/* rgb */ color: rgb(27, 41, 126);
/* oklch */ color: oklch(33.2% 0.143 269.3);
Tailwind
colors: {
  custom: {
    50: '#6962a4',
    500: '#1b297e',
    950: '#000000',
  },
}
SCSS
$custom: #1b297e;
$custom-light: #6962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b297e",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 231.515,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.33215,
    "c": 0.14347,
    "h": 269.3
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#1B297E
secondary
#B2A243
accent
#D040E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B297E

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

Preview Lab → · Contrast checker → · Palette generator →

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