#1F298C#1F298C

#1F298C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.161 H 270.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1F298C
RGBrgb(31, 41, 140)
HSLhsl(234, 64%, 34%)
HSVhsv(234, 78%, 55%)
CMYKcmyk(77.9%, 70.7%, 0%, 45.1%)
CIE-LABlab(22.90, 32.42, -55.75)
CIE-LCHlch(22.90, 64.49, 300.18°)
OKLaboklab(34.86% 0.0013 -0.1614)
OKLCHoklch(34.86% 0.161 270.5)
XYZxyz(6.0900, 3.7700, 25.2126)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298C #8C821F
analogous
#1F5F8C #1F298C #4B1F8C
triadic
#1F298C #8C1F29 #298C1F
tetradic
#1F298C #8C1F5F #8C821F #1F8C4B
square
#1F298C #8C1F5F #8C821F #1F8C4B
split-complementary
#1F298C #8C4B1F #5F8C1F
monochromatic
#090C28 #141A5A #1F298C #2A38BE #4E5AD8

Accessibility & contrast

On white

11.97
#1F298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F298C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298C#FFFFFF#000000##FFFFFF
##1F298C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f298c;
/* rgb */ color: rgb(31, 41, 140);
/* oklch */ color: oklch(34.9% 0.161 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e63af',
    500: '#1f298c',
    950: '#000000',
  },
}
SCSS
$custom: #1f298c;
$custom-light: #6e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298c",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 234.495,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.16138,
    "h": 270.5
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#1F298C
secondary
#BBB04C
accent
#D841E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F298C

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

Preview Lab → · Contrast checker → · Palette generator →

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