#1F298B#1F298B

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

Color values

HEX#1F298B
RGBrgb(31, 41, 139)
HSLhsl(234, 64%, 33%)
HSVhsv(234, 78%, 55%)
CMYKcmyk(77.7%, 70.5%, 0%, 45.5%)
CIE-LABlab(22.79, 32.05, -55.30)
CIE-LCHlch(22.79, 63.91, 300.10°)
OKLaboklab(34.75% 0.0014 -0.16)
OKLCHoklch(34.75% 0.16 270.5)
XYZxyz(6.0166, 3.7406, 24.8260)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F298B #8B811F
analogous
#1F5F8B #1F298B #4B1F8B
triadic
#1F298B #8B1F29 #298B1F
tetradic
#1F298B #8B1F5F #8B811F #1F8B4B
square
#1F298B #8B1F5F #8B811F #1F8B4B
split-complementary
#1F298B #8B4B1F #5F8B1F
monochromatic
#090B27 #141A59 #1F298B #2A38BD #4D5AD7

Accessibility & contrast

On white

12.01
#1F298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F298B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F298B#FFFFFF#000000##FFFFFF
##1F298B1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f298b;
/* rgb */ color: rgb(31, 41, 139);
/* oklch */ color: oklch(34.8% 0.160 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e63ae',
    500: '#1f298b',
    950: '#000000',
  },
}
SCSS
$custom: #1f298b;
$custom-light: #6e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f298b",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 234.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.16005,
    "h": 270.5
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#1F298B
secondary
#BAB04C
accent
#D741E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F298B

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

Preview Lab → · Contrast checker → · Palette generator →

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