#1F298E#1F298E

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

Color values

HEX#1F298E
RGBrgb(31, 41, 142)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(78.2%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.10, 33.16, -56.66)
CIE-LCHlch(23.10, 65.65, 300.34°)
OKLaboklab(35.07% 0.0011 -0.164)
OKLCHoklch(35.07% 0.164 270.4)
XYZxyz(6.2388, 3.8295, 25.9963)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298E #8E841F
analogous
#1F618E #1F298E #4D1F8E
triadic
#1F298E #8E1F29 #298E1F
tetradic
#1F298E #8E1F61 #8E841F #1F8E4D
square
#1F298E #8E1F61 #8E841F #1F8E4D
split-complementary
#1F298E #8E4D1F #618E1F
monochromatic
#090C2A #141A5C #1F298E #2A38C0 #4F5BD9

Accessibility & contrast

On white

11.89
#1F298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F298E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298E#FFFFFF#000000##FFFFFF
##1F298E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f298e;
/* rgb */ color: rgb(31, 41, 142);
/* oklch */ color: oklch(35.1% 0.164 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e63b0',
    500: '#1f298e',
    950: '#000000',
  },
}
SCSS
$custom: #1f298e;
$custom-light: #6e63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298e",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 234.595,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35065,
    "c": 0.16402,
    "h": 270.4
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#1F298E
secondary
#BBB24D
accent
#D841E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F298E

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

Preview Lab → · Contrast checker → · Palette generator →

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