#1F266B#1F266B

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

Color values

HEX#1F266B
RGBrgb(31, 38, 107)
HSLhsl(234, 55%, 27%)
HSVhsv(234, 71%, 42%)
CMYKcmyk(71%, 64.5%, 0%, 58%)
CIE-LABlab(18.97, 21.91, -41.21)
CIE-LCHlch(18.97, 46.67, 297.99°)
OKLaboklab(31.01% 0.006 -0.1188)
OKLCHoklch(31.01% 0.119 272.9)
XYZxyz(3.9111, 2.7387, 14.2296)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F266B #6B641F
analogous
#1F4C6B #1F266B #3E1F6B
triadic
#1F266B #6B1F26 #266B1F
tetradic
#1F266B #6B1F4C #6B641F #1F6B3E
square
#1F266B #6B1F4C #6B641F #1F6B3E
split-complementary
#1F266B #6B3E1F #4C6B1F
monochromatic
#070818 #11153C #1F266B #2D379A #3D4AC7

Accessibility & contrast

On white

13.57
#1F266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F266B
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F266B#FFFFFF#000000##FFFFFF
##1F266B1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f266b;
/* rgb */ color: rgb(31, 38, 107);
/* oklch */ color: oklch(31.0% 0.119 272.9);
Tailwind
colors: {
  custom: {
    50: '#666096',
    500: '#1f266b',
    950: '#000000',
  },
}
SCSS
$custom: #1f266b;
$custom-light: #666096;
$custom-dark: #000000;
JSON
{
  "hex": "#1f266b",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 234.474,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31015,
    "c": 0.11897,
    "h": 272.9
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#1F266B
secondary
#9F9747
accent
#D149DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F266B

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

Preview Lab → · Contrast checker → · Palette generator →

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