#1B298C#1B298C

#1B298C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.162 H 269.0°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1B298C
RGBrgb(27, 41, 140)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 55%)
CMYKcmyk(80.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(22.69, 32.04, -56.09)
CIE-LCHlch(22.69, 64.60, 299.74°)
OKLaboklab(34.66% -0.0028 -0.1624)
OKLCHoklch(34.66% 0.162 269)
XYZxyz(5.9769, 3.7117, 25.2073)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B298C #8C7E1B
analogous
#1B628C #1B298C #451B8C
triadic
#1B298C #8C1B29 #298C1B
tetradic
#1B298C #8C1B62 #8C7E1B #1B8C45
square
#1B298C #8C1B62 #8C7E1B #1B8C45
split-complementary
#1B298C #8C451B #628C1B
monochromatic
#070B25 #111A59 #1B298C #2538BF #4659DB

Accessibility & contrast

On white

12.05
#1B298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B298C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B298C#FFFFFF#000000##FFFFFF
##1B298C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b298c;
/* rgb */ color: rgb(27, 41, 140);
/* oklch */ color: oklch(34.7% 0.162 269.0);
Tailwind
colors: {
  custom: {
    50: '#6d63af',
    500: '#1b298c',
    950: '#000000',
  },
}
SCSS
$custom: #1b298c;
$custom-light: #6d63af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b298c",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 232.566,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.16246,
    "h": 269
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#1B298C
secondary
#BDAE46
accent
#D53DEB
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B298C

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

Preview Lab → · Contrast checker → · Palette generator →

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