#1F2273#1F2273

#1F2273 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.136 H 273.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2273
RGBrgb(31, 34, 115)
HSLhsl(238, 58%, 29%)
HSVhsv(238, 73%, 45%)
CMYKcmyk(73%, 70.4%, 0%, 54.9%)
CIE-LABlab(18.68, 27.70, -46.85)
CIE-LCHlch(18.68, 54.43, 300.60°)
OKLaboklab(31.04% 0.0085 -0.1354)
OKLCHoklch(31.04% 0.136 273.6)
XYZxyz(4.2306, 2.6728, 16.5093)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2273 #73701F
analogous
#1F4C73 #1F2273 #461F73
triadic
#1F2273 #731F22 #22731F
tetradic
#1F2273 #731F4C #73701F #1F7346
square
#1F2273 #731F4C #73701F #1F7346
split-complementary
#1F2273 #73461F #4C731F
monochromatic
#060718 #121443 #1F2273 #2C30A3 #4146CC

Accessibility & contrast

On white

13.68
#1F2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2273
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2273#FFFFFF#000000##FFFFFF
##1F22731.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2273;
/* rgb */ color: rgb(31, 34, 115);
/* oklch */ color: oklch(31.0% 0.136 273.6);
Tailwind
colors: {
  custom: {
    50: '#685d9c',
    500: '#1f2273',
    950: '#000000',
  },
}
SCSS
$custom: #1f2273;
$custom-light: #685d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2273",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 237.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31041,
    "c": 0.13565,
    "h": 273.6
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#1F2273
secondary
#A7A347
accent
#DB47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2273

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

Preview Lab → · Contrast checker → · Palette generator →

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