#1F226F#1F226F

#1F226F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.130 H 274.0°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#1F226F
RGBrgb(31, 34, 111)
HSLhsl(238, 56%, 28%)
HSVhsv(238, 72%, 44%)
CMYKcmyk(72.1%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.29, 26.20, -44.91)
CIE-LCHlch(18.29, 52.00, 300.26°)
OKLaboklab(30.63% 0.009 -0.1297)
OKLCHoklch(30.63% 0.13 274)
XYZxyz(4.0054, 2.5827, 15.3233)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F226F #6F6C1F
analogous
#1F4A6F #1F226F #441F6F
triadic
#1F226F #6F1F22 #226F1F
tetradic
#1F226F #6F1F4A #6F6C1F #1F6F44
square
#1F226F #6F1F4A #6F6C1F #1F6F44
split-complementary
#1F226F #6F441F #4A6F1F
monochromatic
#070718 #12133F #1F226F #2C319F #3F44C9

Accessibility & contrast

On white

13.85
#1F226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F226F
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F226F#FFFFFF#000000##FFFFFF
##1F226F1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f226f;
/* rgb */ color: rgb(31, 34, 111);
/* oklch */ color: oklch(30.6% 0.130 274.0);
Tailwind
colors: {
  custom: {
    50: '#675d99',
    500: '#1f226f',
    950: '#000000',
  },
}
SCSS
$custom: #1f226f;
$custom-light: #675d99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f226f",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 237.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30634,
    "c": 0.13001,
    "h": 274
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#1F226F
secondary
#A3A047
accent
#DA48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F226F

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

Preview Lab → · Contrast checker → · Palette generator →

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