#1F229C#1F229C

#1F229C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.189 H 270.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1F229C
RGBrgb(31, 34, 156)
HSLhsl(239, 67%, 37%)
HSVhsv(239, 80%, 61%)
CMYKcmyk(80.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.12, 42.32, -65.26)
CIE-LCHlch(23.12, 77.78, 302.96°)
OKLaboklab(35.53% 0.0019 -0.189)
OKLCHoklch(35.53% 0.189 270.6)
XYZxyz(7.1358, 3.8349, 31.8102)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F229C #9C991F
analogous
#1F619C #1F229C #5B1F9C
triadic
#1F229C #9C1F22 #229C1F
tetradic
#1F229C #9C1F61 #9C991F #1F9C5B
square
#1F229C #9C1F61 #9C991F #1F9C5B
split-complementary
#1F229C #9C5B1F #619C1F
monochromatic
#0B0C36 #151769 #1F229C #292DCF #585BDE

Accessibility & contrast

On white

11.88
#1F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F229C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F229C#FFFFFF#000000##FFFFFF
##1F229C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f229c;
/* rgb */ color: rgb(31, 34, 156);
/* oklch */ color: oklch(35.5% 0.189 270.6);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#1f229c',
    950: '#000000',
  },
}
SCSS
$custom: #1f229c;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f229c",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 238.56,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.18901,
    "h": 270.6
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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