#1F2390#1F2390

#1F2390 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.173 H 271.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2390
RGBrgb(31, 35, 144)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 78%, 56%)
CMYKcmyk(78.5%, 75.7%, 0%, 43.5%)
CIE-LABlab(21.97, 37.61, -59.77)
CIE-LCHlch(21.97, 70.62, 302.18°)
OKLaboklab(34.32% 0.0037 -0.1731)
OKLCHoklch(34.32% 0.173 271.2)
XYZxyz(6.1984, 3.5063, 26.7303)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2390 #908C1F
analogous
#1F5C90 #1F2390 #541F90
triadic
#1F2390 #901F23 #23901F
tetradic
#1F2390 #901F5C #908C1F #1F9054
square
#1F2390 #901F5C #908C1F #1F9054
split-complementary
#1F2390 #90541F #5C901F
monochromatic
#090B2B #14175E #1F2390 #2A2FC2 #5055D9

Accessibility & contrast

On white

12.34
#1F2390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2390
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2390#FFFFFF#000000##FFFFFF
##1F23901.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2390;
/* rgb */ color: rgb(31, 35, 144);
/* oklch */ color: oklch(34.3% 0.173 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f5fb2',
    500: '#1f2390',
    950: '#000000',
  },
}
SCSS
$custom: #1f2390;
$custom-light: #6f5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2390",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 237.876,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.1731,
    "h": 271.2
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#1F2390
secondary
#BCB84E
accent
#E240E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2390

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

Preview Lab → · Contrast checker → · Palette generator →

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