#1F2290#1F2290

#1F2290 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.174 H 271.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2290
RGBrgb(31, 34, 144)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 78%, 56%)
CMYKcmyk(78.5%, 76.4%, 0%, 43.5%)
CIE-LABlab(21.76, 38.20, -60.12)
CIE-LCHlch(21.76, 71.23, 302.43°)
OKLaboklab(34.17% 0.0041 -0.1741)
OKLCHoklch(34.17% 0.174 271.3)
XYZxyz(6.1694, 3.4483, 26.7206)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2290 #908D1F
analogous
#1F5B90 #1F2290 #551F90
triadic
#1F2290 #901F22 #22901F
tetradic
#1F2290 #901F5B #908D1F #1F9055
square
#1F2290 #901F5B #908D1F #1F9055
split-complementary
#1F2290 #90551F #5B901F
monochromatic
#090A2B #14165E #1F2290 #2A2EC2 #5054D9

Accessibility & contrast

On white

12.43
#1F2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2290
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2290#FFFFFF#000000##FFFFFF
##1F22901.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2290;
/* rgb */ color: rgb(31, 34, 144);
/* oklch */ color: oklch(34.2% 0.174 271.3);
Tailwind
colors: {
  custom: {
    50: '#705eb2',
    500: '#1f2290',
    950: '#000000',
  },
}
SCSS
$custom: #1f2290;
$custom-light: #705eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2290",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 238.407,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34167,
    "c": 0.17411,
    "h": 271.3
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#1F2290
secondary
#BCB94E
accent
#E340E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2290

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

Preview Lab → · Contrast checker → · Palette generator →

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