#1F266C#1F266C

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

Color values

HEX#1F266C
RGBrgb(31, 38, 108)
HSLhsl(235, 55%, 27%)
HSVhsv(235, 71%, 42%)
CMYKcmyk(71.3%, 64.8%, 0%, 57.6%)
CIE-LABlab(19.06, 22.29, -41.71)
CIE-LCHlch(19.06, 47.30, 298.12°)
OKLaboklab(31.11% 0.0059 -0.1203)
OKLCHoklch(31.11% 0.12 272.8)
XYZxyz(3.9641, 2.7599, 14.5083)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F266C #6C651F
analogous
#1F4D6C #1F266C #3E1F6C
triadic
#1F266C #6C1F26 #266C1F
tetradic
#1F266C #6C1F4D #6C651F #1F6C3E
square
#1F266C #6C1F4D #6C651F #1F6C3E
split-complementary
#1F266C #6C3E1F #4D6C1F
monochromatic
#070818 #11153C #1F266C #2D379C #3E4AC8

Accessibility & contrast

On white

13.53
#1F266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F266C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F266C#FFFFFF#000000##FFFFFF
##1F266C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f266c;
/* rgb */ color: rgb(31, 38, 108);
/* oklch */ color: oklch(31.1% 0.120 272.8);
Tailwind
colors: {
  custom: {
    50: '#666097',
    500: '#1f266c',
    950: '#000000',
  },
}
SCSS
$custom: #1f266c;
$custom-light: #666097;
$custom-dark: #000000;
JSON
{
  "hex": "#1f266c",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 234.545,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31109,
    "c": 0.12044,
    "h": 272.8
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#1F266C
secondary
#A09847
accent
#D149DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F266C

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

Preview Lab → · Contrast checker → · Palette generator →

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