#1F2B98#1F2B98

#1F2B98 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.175 H 269.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2B98
RGBrgb(31, 43, 152)
HSLhsl(234, 66%, 36%)
HSVhsv(234, 80%, 60%)
CMYKcmyk(79.6%, 71.7%, 0%, 40.4%)
CIE-LABlab(24.59, 35.55, -60.37)
CIE-LCHlch(24.59, 70.06, 300.49°)
OKLaboklab(36.45% -0.0011 -0.1748)
OKLCHoklch(36.45% 0.175 269.6)
XYZxyz(7.0945, 4.2853, 30.1529)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B98 #988C1F
analogous
#1F6798 #1F2B98 #501F98
triadic
#1F2B98 #981F2B #2B981F
tetradic
#1F2B98 #981F67 #988C1F #1F9850
square
#1F2B98 #981F67 #988C1F #1F9850
split-complementary
#1F2B98 #98501F #67981F
monochromatic
#0A0E32 #151D65 #1F2B98 #2939CB #5562DC

Accessibility & contrast

On white

11.31
#1F2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B98
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B98#FFFFFF#000000##FFFFFF
##1F2B981.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2b98;
/* rgb */ color: rgb(31, 43, 152);
/* oklch */ color: oklch(36.5% 0.175 269.6);
Tailwind
colors: {
  custom: {
    50: '#7165b7',
    500: '#1f2b98',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b98;
$custom-light: #7165b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b98",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 234.05,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36451,
    "c": 0.17485,
    "h": 269.6
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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