#1F237D#1F237D

#1F237D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.148 H 272.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#1F237D
RGBrgb(31, 35, 125)
HSLhsl(237, 60%, 31%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(75.2%, 72%, 0%, 51%)
CIE-LABlab(19.94, 30.76, -51.19)
CIE-LCHlch(19.94, 59.72, 301.00°)
OKLaboklab(32.26% 0.0066 -0.148)
OKLCHoklch(32.26% 0.148 272.6)
XYZxyz(4.8665, 2.9735, 19.7155)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F237D #7D791F
analogous
#1F527D #1F237D #4A1F7D
triadic
#1F237D #7D1F23 #237D1F
tetradic
#1F237D #7D1F52 #7D791F #1F7D4A
square
#1F237D #7D1F52 #7D791F #1F7D4A
split-complementary
#1F237D #7D4A1F #527D1F
monochromatic
#07081B #13154C #1F237D #2B31AE #454BD1

Accessibility & contrast

On white

13.17
#1F237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F237D
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F237D#FFFFFF#000000##FFFFFF
##1F237D1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f237d;
/* rgb */ color: rgb(31, 35, 125);
/* oklch */ color: oklch(32.3% 0.148 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ea4',
    500: '#1f237d',
    950: '#000000',
  },
}
SCSS
$custom: #1f237d;
$custom-light: #6a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f237d",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 237.447,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32256,
    "c": 0.1482,
    "h": 272.6
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#1F237D
secondary
#B0AC48
accent
#DD44E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F237D

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

Preview Lab → · Contrast checker → · Palette generator →

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