#1B268C#1B268C

#1B268C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.166 H 269.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1B268C
RGBrgb(27, 38, 140)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 55%)
CMYKcmyk(80.7%, 72.9%, 0%, 45.1%)
CIE-LABlab(21.99, 33.98, -57.26)
CIE-LCHlch(21.99, 66.58, 300.69°)
OKLaboklab(34.14% -0.0014 -0.1658)
OKLCHoklch(34.14% 0.166 269.5)
XYZxyz(5.8771, 3.5120, 25.1740)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B268C #8C811B
analogous
#1B5F8C #1B268C #481B8C
triadic
#1B268C #8C1B26 #268C1B
tetradic
#1B268C #8C1B5F #8C811B #1B8C48
square
#1B268C #8C1B5F #8C811B #1B8C48
split-complementary
#1B268C #8C481B #5F8C1B
monochromatic
#070A25 #111859 #1B268C #2534BF #4655DB

Accessibility & contrast

On white

12.33
#1B268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B268C
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B268C#FFFFFF#000000##FFFFFF
##1B268C1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b268c;
/* rgb */ color: rgb(27, 38, 140);
/* oklch */ color: oklch(34.1% 0.166 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1b268c',
    950: '#000000',
  },
}
SCSS
$custom: #1b268c;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b268c",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 234.159,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.16585,
    "h": 269.5
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#1B268C
secondary
#BDB146
accent
#DA3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B268C

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

Preview Lab → · Contrast checker → · Palette generator →

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