#1F296B#1F296B

#1F296B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.115 H 271.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F296B
RGBrgb(31, 41, 107)
HSLhsl(232, 55%, 27%)
HSVhsv(232, 71%, 42%)
CMYKcmyk(71%, 61.7%, 0%, 58%)
CIE-LABlab(19.80, 19.79, -39.86)
CIE-LCHlch(19.80, 44.50, 296.40°)
OKLaboklab(31.63% 0.0033 -0.1148)
OKLCHoklch(31.63% 0.115 271.6)
XYZxyz(4.0110, 2.9383, 14.2628)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F296B #6B611F
analogous
#1F4F6B #1F296B #3B1F6B
triadic
#1F296B #6B1F29 #296B1F
tetradic
#1F296B #6B1F4F #6B611F #1F6B3B
square
#1F296B #6B1F4F #6B611F #1F6B3B
split-complementary
#1F296B #6B3B1F #4F6B1F
monochromatic
#070918 #11173C #1F296B #2D3B9A #3D50C7

Accessibility & contrast

On white

13.23
#1F296B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F296B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F296B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F296B#FFFFFF#000000##FFFFFF
##1F296B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f296b;
/* rgb */ color: rgb(31, 41, 107);
/* oklch */ color: oklch(31.6% 0.115 271.6);
Tailwind
colors: {
  custom: {
    50: '#656296',
    500: '#1f296b',
    950: '#000000',
  },
}
SCSS
$custom: #1f296b;
$custom-light: #656296;
$custom-dark: #000000;
JSON
{
  "hex": "#1f296b",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 107
  },
  "hsl": {
    "h": 232.105,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.11486,
    "h": 271.6
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#1F296B
secondary
#9F9447
accent
#CB49DE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F296B

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

Preview Lab → · Contrast checker → · Palette generator →

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