#1F298A#1F298A

#1F298A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.159 H 270.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1F298A
RGBrgb(31, 41, 138)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 78%, 54%)
CMYKcmyk(77.5%, 70.3%, 0%, 45.9%)
CIE-LABlab(22.69, 31.68, -54.84)
CIE-LCHlch(22.69, 63.33, 300.01°)
OKLaboklab(34.65% 0.0015 -0.1587)
OKLCHoklch(34.65% 0.159 270.5)
XYZxyz(5.9439, 3.7115, 24.4430)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298A #8A801F
analogous
#1F5E8A #1F298A #4B1F8A
triadic
#1F298A #8A1F29 #298A1F
tetradic
#1F298A #8A1F5E #8A801F #1F8A4B
square
#1F298A #8A1F5E #8A801F #1F8A4B
split-complementary
#1F298A #8A4B1F #5E8A1F
monochromatic
#090B26 #141A58 #1F298A #2A38BC #4C59D7

Accessibility & contrast

On white

12.05
#1F298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F298A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298A#FFFFFF#000000##FFFFFF
##1F298A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f298a;
/* rgb */ color: rgb(31, 41, 138);
/* oklch */ color: oklch(34.6% 0.159 270.5);
Tailwind
colors: {
  custom: {
    50: '#6d63ad',
    500: '#1f298a',
    950: '#000000',
  },
}
SCSS
$custom: #1f298a;
$custom-light: #6d63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298a",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 234.393,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34648,
    "c": 0.15871,
    "h": 270.5
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#1F298A
secondary
#BAAF4B
accent
#D741E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F298A

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

Preview Lab → · Contrast checker → · Palette generator →

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