#1F228C#1F228C

#1F228C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.169 H 271.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F228C
RGBrgb(31, 34, 140)
HSLhsl(238, 64%, 34%)
HSVhsv(238, 78%, 55%)
CMYKcmyk(77.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.31, 36.80, -58.36)
CIE-LCHlch(21.31, 68.99, 302.23°)
OKLaboklab(33.72% 0.0048 -0.1689)
OKLCHoklch(33.72% 0.169 271.6)
XYZxyz(5.8691, 3.3282, 25.1389)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F228C #8C891F
analogous
#1F588C #1F228C #521F8C
triadic
#1F228C #8C1F22 #228C1F
tetradic
#1F228C #8C1F58 #8C891F #1F8C52
square
#1F228C #8C1F58 #8C891F #1F8C52
split-complementary
#1F228C #8C521F #588C1F
monochromatic
#090A28 #14165A #1F228C #2A2EBE #4E51D8

Accessibility & contrast

On white

12.61
#1F228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F228C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F228C#FFFFFF#000000##FFFFFF
##1F228C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f228c;
/* rgb */ color: rgb(31, 34, 140);
/* oklch */ color: oklch(33.7% 0.169 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1f228c',
    950: '#000000',
  },
}
SCSS
$custom: #1f228c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f228c",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 238.349,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.16902,
    "h": 271.6
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#1F228C
secondary
#BBB84C
accent
#E241E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F228C

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

Preview Lab → · Contrast checker → · Palette generator →

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