#1F229D#1F229D

#1F229D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.190 H 270.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#1F229D
RGBrgb(31, 34, 157)
HSLhsl(239, 67%, 37%)
HSVhsv(239, 80%, 62%)
CMYKcmyk(80.3%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.23, 42.66, -65.68)
CIE-LCHlch(23.23, 78.32, 303.00°)
OKLaboklab(35.64% 0.0017 -0.1902)
OKLCHoklch(35.64% 0.19 270.5)
XYZxyz(7.2208, 3.8689, 32.2580)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F229D #9D9A1F
analogous
#1F619D #1F229D #5B1F9D
triadic
#1F229D #9D1F22 #229D1F
tetradic
#1F229D #9D1F61 #9D9A1F #1F9D5B
square
#1F229D #9D1F61 #9D9A1F #1F9D5B
split-complementary
#1F229D #9D5B1F #619D1F
monochromatic
#0B0C37 #15176A #1F229D #292DD0 #585CDE

Accessibility & contrast

On white

11.84
#1F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F229D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F229D#FFFFFF#000000##FFFFFF
##1F229D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f229d;
/* rgb */ color: rgb(31, 34, 157);
/* oklch */ color: oklch(35.6% 0.190 270.5);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#1f229d',
    950: '#000000',
  },
}
SCSS
$custom: #1f229d;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f229d",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 238.571,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.19023,
    "h": 270.5
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#1F229D
secondary
#C2BF56
accent
#E63EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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