#1F229A#1F229A

#1F229A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.187 H 270.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#1F229A
RGBrgb(31, 34, 154)
HSLhsl(239, 66%, 36%)
HSVhsv(239, 80%, 60%)
CMYKcmyk(79.9%, 77.9%, 0%, 39.6%)
CIE-LABlab(22.89, 41.64, -64.42)
CIE-LCHlch(22.89, 76.71, 302.88°)
OKLaboklab(35.3% 0.0023 -0.1865)
OKLCHoklch(35.3% 0.187 270.7)
XYZxyz(6.9679, 3.7677, 30.9256)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F229A #9A971F
analogous
#1F609A #1F229A #5A1F9A
triadic
#1F229A #9A1F22 #229A1F
tetradic
#1F229A #9A1F60 #9A971F #1F9A5A
square
#1F229A #9A1F60 #9A971F #1F9A5A
split-complementary
#1F229A #9A5A1F #609A1F
monochromatic
#0A0C34 #151767 #1F229A #292DCD #565ADD

Accessibility & contrast

On white

11.98
#1F229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F229A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F229A#FFFFFF#000000##FFFFFF
##1F229A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f229a;
/* rgb */ color: rgb(31, 34, 154);
/* oklch */ color: oklch(35.3% 0.187 270.7);
Tailwind
colors: {
  custom: {
    50: '#725fb9',
    500: '#1f229a',
    950: '#000000',
  },
}
SCSS
$custom: #1f229a;
$custom-light: #725fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f229a",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 238.537,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.353,
    "c": 0.18656,
    "h": 270.7
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#1F229A
secondary
#C1BE54
accent
#E53EE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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