#1F2A98#1F2A98

#1F2A98 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.176 H 269.8°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#1F2A98
RGBrgb(31, 42, 152)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 80%, 60%)
CMYKcmyk(79.6%, 72.4%, 0%, 40.4%)
CIE-LABlab(24.36, 36.18, -60.75)
CIE-LCHlch(24.36, 70.71, 300.78°)
OKLaboklab(36.29% -0.0006 -0.1759)
OKLCHoklch(36.29% 0.176 269.8)
XYZxyz(7.0586, 4.2134, 30.1409)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A98 #988D1F
analogous
#1F6698 #1F2A98 #501F98
triadic
#1F2A98 #981F2A #2A981F
tetradic
#1F2A98 #981F66 #988D1F #1F9850
square
#1F2A98 #981F66 #988D1F #1F9850
split-complementary
#1F2A98 #98501F #66981F
monochromatic
#0A0E32 #151C65 #1F2A98 #2938CB #5561DC

Accessibility & contrast

On white

11.40
#1F2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A98
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A98#FFFFFF#000000##FFFFFF
##1F2A981.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2a98;
/* rgb */ color: rgb(31, 42, 152);
/* oklch */ color: oklch(36.3% 0.176 269.8);
Tailwind
colors: {
  custom: {
    50: '#7164b7',
    500: '#1f2a98',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a98;
$custom-light: #7164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a98",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 234.545,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36287,
    "c": 0.17594,
    "h": 269.8
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#1F2A98
secondary
#C0B653
accent
#DA3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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