#1B298F#1B298F

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

Color values

HEX#1B298F
RGBrgb(27, 41, 143)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 56%)
CMYKcmyk(81.1%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.00, 33.17, -57.45)
CIE-LCHlch(23.00, 66.33, 300.00°)
OKLaboklab(34.97% -0.0031 -0.1664)
OKLCHoklch(34.97% 0.166 268.9)
XYZxyz(6.2011, 3.8013, 26.3882)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B298F #8F811B
analogous
#1B638F #1B298F #471B8F
triadic
#1B298F #8F1B29 #298F1B
tetradic
#1B298F #8F1B63 #8F811B #1B8F47
square
#1B298F #8F1B63 #8F811B #1B8F47
split-complementary
#1B298F #8F471B #638F1B
monochromatic
#080B28 #111A5C #1B298F #2538C2 #485ADC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B298F#FFFFFF#000000##FFFFFF
##1B298F1.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)
#003D92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b298f;
/* rgb */ color: rgb(27, 41, 143);
/* oklch */ color: oklch(35.0% 0.166 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d63b1',
    500: '#1b298f',
    950: '#000000',
  },
}
SCSS
$custom: #1b298f;
$custom-light: #6d63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b298f",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 232.759,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34972,
    "c": 0.16642,
    "h": 268.9
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B298F

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

Preview Lab → · Contrast checker → · Palette generator →

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