#1F239D#1F239D

#1F239D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.189 H 270.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#1F239D
RGBrgb(31, 35, 157)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 80%, 62%)
CMYKcmyk(80.3%, 77.7%, 0%, 38.4%)
CIE-LABlab(23.43, 42.10, -65.36)
CIE-LCHlch(23.43, 77.75, 302.78°)
OKLaboklab(35.78% 0.0014 -0.1893)
OKLCHoklch(35.78% 0.189 270.4)
XYZxyz(7.2498, 3.9269, 32.2676)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F239D #9D991F
analogous
#1F629D #1F239D #5A1F9D
triadic
#1F239D #9D1F23 #239D1F
tetradic
#1F239D #9D1F62 #9D991F #1F9D5A
square
#1F239D #9D1F62 #9D991F #1F9D5A
split-complementary
#1F239D #9D5A1F #629D1F
monochromatic
#0B0C37 #15186A #1F239D #292ED0 #585DDE

Accessibility & contrast

On white

11.76
#1F239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F239D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F239D#FFFFFF#000000##FFFFFF
##1F239D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f239d;
/* rgb */ color: rgb(31, 35, 157);
/* oklch */ color: oklch(35.8% 0.189 270.4);
Tailwind
colors: {
  custom: {
    50: '#7360bb',
    500: '#1f239d',
    950: '#000000',
  },
}
SCSS
$custom: #1f239d;
$custom-light: #7360bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f239d",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 238.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.1893,
    "h": 270.4
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#1F239D
secondary
#C2BE56
accent
#E43EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F239D

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

Preview Lab → · Contrast checker → · Palette generator →

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