#1F237F#1F237F

#1F237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.151 H 272.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#1F237F
RGBrgb(31, 35, 127)
HSLhsl(238, 61%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(75.6%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.14, 31.50, -52.12)
CIE-LCHlch(20.14, 60.89, 301.15°)
OKLaboklab(32.47% 0.0063 -0.1508)
OKLCHoklch(32.47% 0.151 272.4)
XYZxyz(4.9956, 3.0252, 20.3952)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F237F #7F7B1F
analogous
#1F537F #1F237F #4B1F7F
triadic
#1F237F #7F1F23 #237F1F
tetradic
#1F237F #7F1F53 #7F7B1F #1F7F4B
square
#1F237F #7F1F53 #7F7B1F #1F7F4B
split-complementary
#1F237F #7F4B1F #537F1F
monochromatic
#07081D #13154E #1F237F #2B31B0 #464CD2

Accessibility & contrast

On white

13.08
#1F237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F237F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F237F#FFFFFF#000000##FFFFFF
##1F237F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f237f;
/* rgb */ color: rgb(31, 35, 127);
/* oklch */ color: oklch(32.5% 0.151 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b5ea5',
    500: '#1f237f',
    950: '#000000',
  },
}
SCSS
$custom: #1f237f;
$custom-light: #6b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f237f",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 237.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32468,
    "c": 0.15089,
    "h": 272.4
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#1F237F
secondary
#B2AE48
accent
#DD44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F237F

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

Preview Lab → · Contrast checker → · Palette generator →

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