#1F2B97#1F2B97

#1F2B97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.174 H 269.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#1F2B97
RGBrgb(31, 43, 151)
HSLhsl(234, 66%, 36%)
HSVhsv(234, 79%, 59%)
CMYKcmyk(79.5%, 71.5%, 0%, 40.8%)
CIE-LABlab(24.49, 35.19, -59.93)
CIE-LCHlch(24.49, 69.50, 300.42°)
OKLaboklab(36.35% -0.001 -0.1735)
OKLCHoklch(36.35% 0.174 269.7)
XYZxyz(7.0130, 4.2526, 29.7234)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B97 #978B1F
analogous
#1F6797 #1F2B97 #4F1F97
triadic
#1F2B97 #971F2B #2B971F
tetradic
#1F2B97 #971F67 #978B1F #1F974F
square
#1F2B97 #971F67 #978B1F #1F974F
split-complementary
#1F2B97 #974F1F #67971F
monochromatic
#0A0E31 #151D64 #1F2B97 #2939CA #5462DC

Accessibility & contrast

On white

11.35
#1F2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B97
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B97#FFFFFF#000000##FFFFFF
##1F2B971.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2b97;
/* rgb */ color: rgb(31, 43, 151);
/* oklch */ color: oklch(36.3% 0.174 269.7);
Tailwind
colors: {
  custom: {
    50: '#7065b7',
    500: '#1f2b97',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b97;
$custom-light: #7065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b97",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 234,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36346,
    "c": 0.17355,
    "h": 269.7
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#1F2B97
secondary
#BFB552
accent
#D83FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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