#1F298D#1F298D

#1F298D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.163 H 270.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#1F298D
RGBrgb(31, 41, 141)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 55%)
CMYKcmyk(78%, 70.9%, 0%, 44.7%)
CIE-LABlab(23.00, 32.79, -56.21)
CIE-LCHlch(23.00, 65.07, 300.26°)
OKLaboklab(34.96% 0.0012 -0.1627)
OKLCHoklch(34.96% 0.163 270.4)
XYZxyz(6.1641, 3.7996, 25.6027)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298D #8D831F
analogous
#1F608D #1F298D #4C1F8D
triadic
#1F298D #8D1F29 #298D1F
tetradic
#1F298D #8D1F60 #8D831F #1F8D4C
square
#1F298D #8D1F60 #8D831F #1F8D4C
split-complementary
#1F298D #8D4C1F #608D1F
monochromatic
#090C29 #141A5B #1F298D #2A38BF #4E5BD8

Accessibility & contrast

On white

11.93
#1F298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F298D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298D#FFFFFF#000000##FFFFFF
##1F298D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f298d;
/* rgb */ color: rgb(31, 41, 141);
/* oklch */ color: oklch(35.0% 0.163 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e63af',
    500: '#1f298d',
    950: '#000000',
  },
}
SCSS
$custom: #1f298d;
$custom-light: #6e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298d",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 234.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3496,
    "c": 0.1627,
    "h": 270.4
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#1F298D
secondary
#BBB14D
accent
#D841E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F298D

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

Preview Lab → · Contrast checker → · Palette generator →

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