#1F2385#1F2385

#1F2385 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.159 H 272.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#1F2385
RGBrgb(31, 35, 133)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 52%)
CMYKcmyk(76.7%, 73.7%, 0%, 47.8%)
CIE-LABlab(20.78, 33.68, -54.87)
CIE-LCHlch(20.78, 64.38, 301.55°)
OKLaboklab(33.11% 0.0055 -0.1588)
OKLCHoklch(33.11% 0.159 272)
XYZxyz(5.3983, 3.1863, 22.5163)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2385 #85811F
analogous
#1F5685 #1F2385 #4E1F85
triadic
#1F2385 #851F23 #23851F
tetradic
#1F2385 #851F56 #85811F #1F854E
square
#1F2385 #851F56 #85811F #1F854E
split-complementary
#1F2385 #854E1F #56851F
monochromatic
#080922 #131653 #1F2385 #2B30B7 #4A4FD5

Accessibility & contrast

On white

12.83
#1F2385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2385
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2385#FFFFFF#000000##FFFFFF
##1F23851.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2385;
/* rgb */ color: rgb(31, 35, 133);
/* oklch */ color: oklch(33.1% 0.159 272.0);
Tailwind
colors: {
  custom: {
    50: '#6d5faa',
    500: '#1f2385',
    950: '#000000',
  },
}
SCSS
$custom: #1f2385;
$custom-light: #6d5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2385",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 237.647,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.15887,
    "h": 272
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#1F2385
secondary
#B7B349
accent
#DF43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2385

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

Preview Lab → · Contrast checker → · Palette generator →

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