#1B297D#1B297D

#1B297D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.142 H 269.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1B297D
RGBrgb(27, 41, 125)
HSLhsl(231, 64%, 30%)
HSVhsv(231, 78%, 49%)
CMYKcmyk(78.4%, 67.2%, 0%, 51%)
CIE-LABlab(21.20, 26.30, -49.12)
CIE-LCHlch(21.20, 55.71, 298.17°)
OKLaboklab(33.12% -0.0016 -0.1421)
OKLCHoklch(33.12% 0.142 269.4)
XYZxyz(4.9453, 3.2990, 19.7742)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B297D #7D6F1B
analogous
#1B5A7D #1B297D #3E1B7D
triadic
#1B297D #7D1B29 #297D1B
tetradic
#1B297D #7D1B5A #7D6F1B #1B7D3E
square
#1B297D #7D1B5A #7D6F1B #1B7D3E
split-complementary
#1B297D #7D3E1B #5A7D1B
monochromatic
#050819 #10184B #1B297D #263AAF #3D53D5

Accessibility & contrast

On white

12.65
#1B297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B297D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B297D#FFFFFF#000000##FFFFFF
##1B297D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b297d;
/* rgb */ color: rgb(27, 41, 125);
/* oklch */ color: oklch(33.1% 0.142 269.4);
Tailwind
colors: {
  custom: {
    50: '#6862a3',
    500: '#1b297d',
    950: '#000000',
  },
}
SCSS
$custom: #1b297d;
$custom-light: #6862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b297d",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 231.429,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33115,
    "c": 0.14208,
    "h": 269.4
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#1B297D
secondary
#B1A143
accent
#D040E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B297D

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

Preview Lab → · Contrast checker → · Palette generator →

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