#1F268F#1F268F

#1F268F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.169 H 270.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1F268F
RGBrgb(31, 38, 143)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(78.3%, 73.4%, 0%, 43.9%)
CIE-LABlab(22.51, 35.42, -58.25)
CIE-LCHlch(22.51, 68.17, 301.30°)
OKLaboklab(34.67% 0.0025 -0.1686)
OKLCHoklch(34.67% 0.169 270.8)
XYZxyz(6.2144, 3.6600, 26.3602)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268F #8F881F
analogous
#1F5E8F #1F268F #501F8F
triadic
#1F268F #8F1F26 #268F1F
tetradic
#1F268F #8F1F5E #8F881F #1F8F50
square
#1F268F #8F1F5E #8F881F #1F8F50
split-complementary
#1F268F #8F501F #5E8F1F
monochromatic
#090B2A #14195D #1F268F #2A33C1 #4F58D9

Accessibility & contrast

On white

12.12
#1F268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F268F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F268F#FFFFFF#000000##FFFFFF
##1F268F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f268f;
/* rgb */ color: rgb(31, 38, 143);
/* oklch */ color: oklch(34.7% 0.169 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f61b1',
    500: '#1f268f',
    950: '#000000',
  },
}
SCSS
$custom: #1f268f;
$custom-light: #6f61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268f",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 236.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34675,
    "c": 0.16866,
    "h": 270.8
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#1F268F
secondary
#BCB54E
accent
#DD40E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F268F

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

Preview Lab → · Contrast checker → · Palette generator →

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