#1B298E#1B298E

#1B298E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.165 H 269.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1B298E
RGBrgb(27, 41, 142)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 56%)
CMYKcmyk(81%, 71.1%, 0%, 44.3%)
CIE-LABlab(22.90, 32.79, -57.00)
CIE-LCHlch(22.90, 65.76, 299.91°)
OKLaboklab(34.87% -0.003 -0.1651)
OKLCHoklch(34.87% 0.165 269)
XYZxyz(6.1257, 3.7712, 25.9910)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B298E #8E801B
analogous
#1B628E #1B298E #471B8E
triadic
#1B298E #8E1B29 #298E1B
tetradic
#1B298E #8E1B62 #8E801B #1B8E47
square
#1B298E #8E1B62 #8E801B #1B8E47
split-complementary
#1B298E #8E471B #628E1B
monochromatic
#070B27 #111A5B #1B298E #2538C1 #4759DC

Accessibility & contrast

On white

11.97
#1B298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B298E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B298E#FFFFFF#000000##FFFFFF
##1B298E1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b298e;
/* rgb */ color: rgb(27, 41, 142);
/* oklch */ color: oklch(34.9% 0.165 269.0);
Tailwind
colors: {
  custom: {
    50: '#6d63b0',
    500: '#1b298e',
    950: '#000000',
  },
}
SCSS
$custom: #1b298e;
$custom-light: #6d63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b298e",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 232.696,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.16511,
    "h": 269
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#1B298E
secondary
#BEAF47
accent
#D63DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B298E

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

Preview Lab → · Contrast checker → · Palette generator →

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