#1F298F#1F298F

#1F298F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.165 H 270.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#1F298F
RGBrgb(31, 41, 143)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(78.3%, 71.3%, 0%, 43.9%)
CIE-LABlab(23.20, 33.53, -57.11)
CIE-LCHlch(23.20, 66.23, 300.41°)
OKLaboklab(35.17% 0.001 -0.1653)
OKLCHoklch(35.17% 0.165 270.3)
XYZxyz(6.3142, 3.8597, 26.3935)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298F #8F851F
analogous
#1F618F #1F298F #4D1F8F
triadic
#1F298F #8F1F29 #298F1F
tetradic
#1F298F #8F1F61 #8F851F #1F8F4D
square
#1F298F #8F1F61 #8F851F #1F8F4D
split-complementary
#1F298F #8F4D1F #618F1F
monochromatic
#090C2A #141B5D #1F298F #2A37C1 #4F5CD9

Accessibility & contrast

On white

11.85
#1F298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F298F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298F#FFFFFF#000000##FFFFFF
##1F298F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f298f;
/* rgb */ color: rgb(31, 41, 143);
/* oklch */ color: oklch(35.2% 0.165 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f63b1',
    500: '#1f298f',
    950: '#000000',
  },
}
SCSS
$custom: #1f298f;
$custom-light: #6f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298f",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 234.643,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35169,
    "c": 0.16534,
    "h": 270.3
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#1F298F
secondary
#BCB24E
accent
#D840E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F298F

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

Preview Lab → · Contrast checker → · Palette generator →

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