#1F268D#1F268D

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

Color values

HEX#1F268D
RGBrgb(31, 38, 141)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 55%)
CMYKcmyk(78%, 73%, 0%, 44.7%)
CIE-LABlab(22.30, 34.70, -57.35)
CIE-LCHlch(22.30, 67.03, 301.17°)
OKLaboklab(34.46% 0.0027 -0.166)
OKLCHoklch(34.46% 0.166 270.9)
XYZxyz(6.0643, 3.6000, 25.5694)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268D #8D861F
analogous
#1F5D8D #1F268D #4F1F8D
triadic
#1F268D #8D1F26 #268D1F
tetradic
#1F268D #8D1F5D #8D861F #1F8D4F
square
#1F268D #8D1F5D #8D861F #1F8D4F
split-complementary
#1F268D #8D4F1F #5D8D1F
monochromatic
#090B29 #14185B #1F268D #2A34BF #4E57D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F268D#FFFFFF#000000##FFFFFF
##1F268D1.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)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f268d;
/* rgb */ color: rgb(31, 38, 141);
/* oklch */ color: oklch(34.5% 0.166 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e61af',
    500: '#1f268d',
    950: '#000000',
  },
}
SCSS
$custom: #1f268d;
$custom-light: #6e61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268d",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 236.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34459,
    "c": 0.16605,
    "h": 270.9
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#1F268D
secondary
#BBB44D
accent
#DC41E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F268D

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

Preview Lab → · Contrast checker → · Palette generator →

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