#1F268E#1F268E

#1F268E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.167 H 270.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1F268E
RGBrgb(31, 38, 142)
HSLhsl(236, 64%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(78.2%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.41, 35.06, -57.80)
CIE-LCHlch(22.41, 67.60, 301.24°)
OKLaboklab(34.57% 0.0026 -0.1673)
OKLCHoklch(34.57% 0.167 270.9)
XYZxyz(6.1390, 3.6299, 25.9630)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F268E #8E871F
analogous
#1F5E8E #1F268E #501F8E
triadic
#1F268E #8E1F26 #268E1F
tetradic
#1F268E #8E1F5E #8E871F #1F8E50
square
#1F268E #8E1F5E #8E871F #1F8E50
split-complementary
#1F268E #8E501F #5E8E1F
monochromatic
#090B2A #14195C #1F268E #2A33C0 #4F58D9

Accessibility & contrast

On white

12.17
#1F268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F268E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F268E#FFFFFF#000000##FFFFFF
##1F268E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f268e;
/* rgb */ color: rgb(31, 38, 142);
/* oklch */ color: oklch(34.6% 0.167 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f61b0',
    500: '#1f268e',
    950: '#000000',
  },
}
SCSS
$custom: #1f268e;
$custom-light: #6f61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f268e",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 236.216,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34567,
    "c": 0.16736,
    "h": 270.9
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#1F268E
secondary
#BBB54D
accent
#DD41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F268E

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

Preview Lab → · Contrast checker → · Palette generator →

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