#1F2B73#1F2B73

#1F2B73 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.124 H 270.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#1F2B73
RGBrgb(31, 43, 115)
HSLhsl(231, 58%, 29%)
HSVhsv(231, 73%, 45%)
CMYKcmyk(73%, 62.6%, 0%, 54.9%)
CIE-LABlab(21.04, 21.51, -42.99)
CIE-LCHlch(21.04, 48.07, 296.59°)
OKLaboklab(32.77% 0.0015 -0.124)
OKLCHoklch(32.77% 0.124 270.7)
XYZxyz(4.5224, 3.2564, 16.6065)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B73 #73671F
analogous
#1F5573 #1F2B73 #3D1F73
triadic
#1F2B73 #731F2B #2B731F
tetradic
#1F2B73 #731F55 #73671F #1F733D
square
#1F2B73 #731F55 #73671F #1F733D
split-complementary
#1F2B73 #733D1F #55731F
monochromatic
#060918 #121943 #1F2B73 #2C3DA3 #4155CC

Accessibility & contrast

On white

12.72
#1F2B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B73
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B73#FFFFFF#000000##FFFFFF
##1F2B731.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2b73;
/* rgb */ color: rgb(31, 43, 115);
/* oklch */ color: oklch(32.8% 0.124 270.7);
Tailwind
colors: {
  custom: {
    50: '#67649c',
    500: '#1f2b73',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b73;
$custom-light: #67649c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b73",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 231.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32773,
    "c": 0.124,
    "h": 270.7
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#1F2B73
secondary
#A79947
accent
#CB47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B73

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

Preview Lab → · Contrast checker → · Palette generator →

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