#1F299C#1F299C

#1F299C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.182 H 269.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#1F299C
RGBrgb(31, 41, 156)
HSLhsl(235, 67%, 37%)
HSVhsv(235, 80%, 61%)
CMYKcmyk(80.1%, 73.7%, 0%, 38.8%)
CIE-LABlab(24.57, 38.23, -62.87)
CIE-LCHlch(24.57, 73.58, 301.30°)
OKLaboklab(36.56% -0.0007 -0.1821)
OKLCHoklch(36.56% 0.182 269.8)
XYZxyz(7.3567, 4.2766, 31.8838)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F299C #9C921F
analogous
#1F689C #1F299C #541F9C
triadic
#1F299C #9C1F29 #299C1F
tetradic
#1F299C #9C1F68 #9C921F #1F9C54
square
#1F299C #9C1F68 #9C921F #1F9C54
split-complementary
#1F299C #9C541F #689C1F
monochromatic
#0B0E36 #151C69 #1F299C #2936CF #5862DE

Accessibility & contrast

On white

11.32
#1F299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F299C
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F299C#FFFFFF#000000##FFFFFF
##1F299C1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f299c;
/* rgb */ color: rgb(31, 41, 156);
/* oklch */ color: oklch(36.6% 0.182 269.8);
Tailwind
colors: {
  custom: {
    50: '#7264ba',
    500: '#1f299c',
    950: '#000000',
  },
}
SCSS
$custom: #1f299c;
$custom-light: #7264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f299c",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 235.2,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36558,
    "c": 0.18211,
    "h": 269.8
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#1F299C
secondary
#C1B955
accent
#DC3EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F299C

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

Preview Lab → · Contrast checker → · Palette generator →

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