#1F296F#1F296F

#1F296F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.121 H 271.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#1F296F
RGBrgb(31, 41, 111)
HSLhsl(233, 56%, 28%)
HSVhsv(233, 72%, 44%)
CMYKcmyk(72.1%, 63.1%, 0%, 56.5%)
CIE-LABlab(20.14, 21.35, -41.88)
CIE-LCHlch(20.14, 47.01, 297.01°)
OKLaboklab(32% 0.0032 -0.1208)
OKLCHoklch(32% 0.121 271.5)
XYZxyz(4.2263, 3.0245, 15.3969)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F296F #6F651F
analogous
#1F516F #1F296F #3D1F6F
triadic
#1F296F #6F1F29 #296F1F
tetradic
#1F296F #6F1F51 #6F651F #1F6F3D
square
#1F296F #6F1F51 #6F651F #1F6F3D
split-complementary
#1F296F #6F3D1F #516F1F
monochromatic
#070918 #12173F #1F296F #2C3B9F #3F50C9

Accessibility & contrast

On white

13.08
#1F296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F296F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F296F#FFFFFF#000000##FFFFFF
##1F296F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f296f;
/* rgb */ color: rgb(31, 41, 111);
/* oklch */ color: oklch(32.0% 0.121 271.5);
Tailwind
colors: {
  custom: {
    50: '#666299',
    500: '#1f296f',
    950: '#000000',
  },
}
SCSS
$custom: #1f296f;
$custom-light: #666299;
$custom-dark: #000000;
JSON
{
  "hex": "#1f296f",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 232.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31995,
    "c": 0.12081,
    "h": 271.5
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#1F296F
secondary
#A39747
accent
#CD48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F296F

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

Preview Lab → · Contrast checker → · Palette generator →

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