#1F266D#1F266D

#1F266D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.122 H 272.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F266D
RGBrgb(31, 38, 109)
HSLhsl(235, 56%, 27%)
HSVhsv(235, 72%, 43%)
CMYKcmyk(71.6%, 65.1%, 0%, 57.3%)
CIE-LABlab(19.15, 22.68, -42.21)
CIE-LCHlch(19.15, 47.92, 298.25°)
OKLaboklab(31.2% 0.0059 -0.1218)
OKLCHoklch(31.2% 0.122 272.8)
XYZxyz(4.0176, 2.7813, 14.7901)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F266D #6D661F
analogous
#1F4D6D #1F266D #3F1F6D
triadic
#1F266D #6D1F26 #266D1F
tetradic
#1F266D #6D1F4D #6D661F #1F6D3F
square
#1F266D #6D1F4D #6D661F #1F6D3F
split-complementary
#1F266D #6D3F1F #4D6D1F
monochromatic
#070818 #11153D #1F266D #2D379D #3E4BC8

Accessibility & contrast

On white

13.49
#1F266D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F266D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F266D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F266D#FFFFFF#000000##FFFFFF
##1F266D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f266d;
/* rgb */ color: rgb(31, 38, 109);
/* oklch */ color: oklch(31.2% 0.122 272.8);
Tailwind
colors: {
  custom: {
    50: '#666098',
    500: '#1f266d',
    950: '#000000',
  },
}
SCSS
$custom: #1f266d;
$custom-light: #666098;
$custom-dark: #000000;
JSON
{
  "hex": "#1f266d",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 234.615,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31204,
    "c": 0.12191,
    "h": 272.8
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#1F266D
secondary
#A19947
accent
#D249DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1F266D

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

Preview Lab → · Contrast checker → · Palette generator →

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