#1B268B#1B268B

#1B268B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.165 H 269.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1B268B
RGBrgb(27, 38, 139)
HSLhsl(234, 67%, 33%)
HSVhsv(234, 81%, 55%)
CMYKcmyk(80.6%, 72.7%, 0%, 45.5%)
CIE-LABlab(21.88, 33.61, -56.81)
CIE-LCHlch(21.88, 66.00, 300.61°)
OKLaboklab(34.04% -0.0012 -0.1645)
OKLCHoklch(34.04% 0.165 269.6)
XYZxyz(5.8037, 3.4827, 24.7874)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B268B #8B801B
analogous
#1B5E8B #1B268B #481B8B
triadic
#1B268B #8B1B26 #268B1B
tetradic
#1B268B #8B1B5E #8B801B #1B8B48
square
#1B268B #8B1B5E #8B801B #1B8B48
split-complementary
#1B268B #8B481B #5E8B1B
monochromatic
#070A25 #111858 #1B268B #2534BE #4554DB

Accessibility & contrast

On white

12.38
#1B268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B268B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B268B#FFFFFF#000000##FFFFFF
##1B268B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b268b;
/* rgb */ color: rgb(27, 38, 139);
/* oklch */ color: oklch(34.0% 0.165 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d61ae',
    500: '#1b268b',
    950: '#000000',
  },
}
SCSS
$custom: #1b268b;
$custom-light: #6d61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b268b",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 234.107,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34036,
    "c": 0.16453,
    "h": 269.6
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#1B268B
secondary
#BCB145
accent
#D93DEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B268B

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

Preview Lab → · Contrast checker → · Palette generator →

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