#1F266A#1F266A

#1F266A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.9% C 0.117 H 272.9°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1F266A
RGBrgb(31, 38, 106)
HSLhsl(234, 55%, 27%)
HSVhsv(234, 71%, 42%)
CMYKcmyk(70.8%, 64.2%, 0%, 58.4%)
CIE-LABlab(18.88, 21.52, -40.70)
CIE-LCHlch(18.88, 46.04, 297.86°)
OKLaboklab(30.92% 0.006 -0.1173)
OKLCHoklch(30.92% 0.117 272.9)
XYZxyz(3.8588, 2.7178, 13.9541)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F266A #6A631F
analogous
#1F4C6A #1F266A #3E1F6A
triadic
#1F266A #6A1F26 #266A1F
tetradic
#1F266A #6A1F4C #6A631F #1F6A3E
square
#1F266A #6A1F4C #6A631F #1F6A3E
split-complementary
#1F266A #6A3E1F #4C6A1F
monochromatic
#070818 #11153B #1F266A #2D3799 #3D4AC6

Accessibility & contrast

On white

13.60
#1F266A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F266A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F266A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F266A#FFFFFF#000000##FFFFFF
##1F266A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f266a;
/* rgb */ color: rgb(31, 38, 106);
/* oklch */ color: oklch(30.9% 0.117 272.9);
Tailwind
colors: {
  custom: {
    50: '#656095',
    500: '#1f266a',
    950: '#000000',
  },
}
SCSS
$custom: #1f266a;
$custom-light: #656095;
$custom-dark: #000000;
JSON
{
  "hex": "#1f266a",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 234.4,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30921,
    "c": 0.11748,
    "h": 272.9
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#1F266A
secondary
#9E9647
accent
#D04ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F266A

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

Preview Lab → · Contrast checker → · Palette generator →

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