#1B268F#1B268F

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

Color values

HEX#1B268F
RGBrgb(27, 38, 143)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 56%)
CMYKcmyk(81.1%, 73.4%, 0%, 43.9%)
CIE-LABlab(22.31, 35.08, -58.59)
CIE-LCHlch(22.31, 68.29, 300.91°)
OKLaboklab(34.47% -0.0017 -0.1697)
OKLCHoklch(34.47% 0.17 269.4)
XYZxyz(6.1013, 3.6017, 26.3549)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B268F #8F841B
analogous
#1B608F #1B268F #4A1B8F
triadic
#1B268F #8F1B26 #268F1B
tetradic
#1B268F #8F1B60 #8F841B #1B8F4A
square
#1B268F #8F1B60 #8F841B #1B8F4A
split-complementary
#1B268F #8F4A1B #608F1B
monochromatic
#080B28 #11185C #1B268F #2534C2 #4856DC

Accessibility & contrast

On white

12.21
#1B268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B268F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B268F#FFFFFF#000000##FFFFFF
##1B268F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b268f;
/* rgb */ color: rgb(27, 38, 143);
/* oklch */ color: oklch(34.5% 0.170 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e61b1',
    500: '#1b268f',
    950: '#000000',
  },
}
SCSS
$custom: #1b268f;
$custom-light: #6e61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b268f",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 234.31,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34471,
    "c": 0.16974,
    "h": 269.4
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#1B268F
secondary
#BEB348
accent
#DB3DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B268F

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

Preview Lab → · Contrast checker → · Palette generator →

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