#1B297F#1B297F

#1B297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.145 H 269.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1B297F
RGBrgb(27, 41, 127)
HSLhsl(232, 65%, 30%)
HSVhsv(232, 79%, 50%)
CMYKcmyk(78.7%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.40, 27.08, -50.07)
CIE-LCHlch(21.40, 56.92, 298.41°)
OKLaboklab(33.32% -0.0017 -0.1448)
OKLCHoklch(33.32% 0.145 269.3)
XYZxyz(5.0744, 3.3506, 20.4539)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B297F #7F711B
analogous
#1B5B7F #1B297F #3F1B7F
triadic
#1B297F #7F1B29 #297F1B
tetradic
#1B297F #7F1B5B #7F711B #1B7F3F
square
#1B297F #7F1B5B #7F711B #1B7F3F
split-complementary
#1B297F #7F3F1B #5B7F1B
monochromatic
#06081A #10194D #1B297F #2639B1 #3E54D6

Accessibility & contrast

On white

12.57
#1B297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B297F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B297F#FFFFFF#000000##FFFFFF
##1B297F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b297f;
/* rgb */ color: rgb(27, 41, 127);
/* oklch */ color: oklch(33.3% 0.145 269.3);
Tailwind
colors: {
  custom: {
    50: '#6962a5',
    500: '#1b297f',
    950: '#000000',
  },
}
SCSS
$custom: #1b297f;
$custom-light: #6962a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b297f",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 231.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.14486,
    "h": 269.3
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B297F

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

Preview Lab → · Contrast checker → · Palette generator →

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