#1F2283#1F2283

#1F2283 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.157 H 272.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#1F2283
RGBrgb(31, 34, 131)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 76%, 51%)
CMYKcmyk(76.3%, 74%, 0%, 48.6%)
CIE-LABlab(20.34, 33.59, -54.33)
CIE-LCHlch(20.34, 63.87, 301.72°)
OKLaboklab(32.73% 0.0063 -0.1572)
OKLCHoklch(32.73% 0.157 272.3)
XYZxyz(5.2325, 3.0735, 21.7858)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2283 #83801F
analogous
#1F5483 #1F2283 #4E1F83
triadic
#1F2283 #831F22 #22831F
tetradic
#1F2283 #831F54 #83801F #1F834E
square
#1F2283 #831F54 #83801F #1F834E
split-complementary
#1F2283 #834E1F #54831F
monochromatic
#080820 #131552 #1F2283 #2B2FB4 #494DD4

Accessibility & contrast

On white

13.00
#1F2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2283
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2283#FFFFFF#000000##FFFFFF
##1F22831.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2283;
/* rgb */ color: rgb(31, 34, 131);
/* oklch */ color: oklch(32.7% 0.157 272.3);
Tailwind
colors: {
  custom: {
    50: '#6c5ea8',
    500: '#1f2283',
    950: '#000000',
  },
}
SCSS
$custom: #1f2283;
$custom-light: #6c5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2283",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 238.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.15734,
    "h": 272.3
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#1F2283
secondary
#B6B248
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2283

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

Preview Lab → · Contrast checker → · Palette generator →

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