#1B268E#1B268E

#1B268E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.168 H 269.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1B268E
RGBrgb(27, 38, 142)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 56%)
CMYKcmyk(81%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.20, 34.71, -58.15)
CIE-LCHlch(22.20, 67.72, 300.84°)
OKLaboklab(34.36% -0.0016 -0.1684)
OKLCHoklch(34.36% 0.168 269.4)
XYZxyz(6.0259, 3.5715, 25.9577)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B268E #8E831B
analogous
#1B5F8E #1B268E #491B8E
triadic
#1B268E #8E1B26 #268E1B
tetradic
#1B268E #8E1B5F #8E831B #1B8E49
square
#1B268E #8E1B5F #8E831B #1B8E49
split-complementary
#1B268E #8E491B #5F8E1B
monochromatic
#070A27 #11185B #1B268E #2534C1 #4756DC

Accessibility & contrast

On white

12.25
#1B268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B268E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B268E#FFFFFF#000000##FFFFFF
##1B268E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b268e;
/* rgb */ color: rgb(27, 38, 142);
/* oklch */ color: oklch(34.4% 0.168 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d61b0',
    500: '#1b268e',
    950: '#000000',
  },
}
SCSS
$custom: #1b268e;
$custom-light: #6d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b268e",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 234.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34362,
    "c": 0.16844,
    "h": 269.4
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#1B268E
secondary
#BEB247
accent
#DA3DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B268E

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

Preview Lab → · Contrast checker → · Palette generator →

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