#1F226E#1F226E

#1F226E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.129 H 274.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1F226E
RGBrgb(31, 34, 110)
HSLhsl(238, 56%, 28%)
HSVhsv(238, 72%, 43%)
CMYKcmyk(71.8%, 69.1%, 0%, 56.9%)
CIE-LABlab(18.19, 25.82, -44.42)
CIE-LCHlch(18.19, 51.38, 300.17°)
OKLaboklab(30.53% 0.0091 -0.1283)
OKLCHoklch(30.53% 0.129 274.1)
XYZxyz(3.9506, 2.5608, 15.0349)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F226E #6E6B1F
analogous
#1F496E #1F226E #441F6E
triadic
#1F226E #6E1F22 #226E1F
tetradic
#1F226E #6E1F49 #6E6B1F #1F6E44
square
#1F226E #6E1F49 #6E6B1F #1F6E44
split-complementary
#1F226E #6E441F #496E1F
monochromatic
#070718 #12133E #1F226E #2C319E #3F44C9

Accessibility & contrast

On white

13.89
#1F226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F226E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F226E#FFFFFF#000000##FFFFFF
##1F226E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f226e;
/* rgb */ color: rgb(31, 34, 110);
/* oklch */ color: oklch(30.5% 0.129 274.1);
Tailwind
colors: {
  custom: {
    50: '#675d98',
    500: '#1f226e',
    950: '#000000',
  },
}
SCSS
$custom: #1f226e;
$custom-light: #675d98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f226e",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 237.722,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30534,
    "c": 0.12859,
    "h": 274.1
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#1F226E
secondary
#A29F47
accent
#DA48DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F226E

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

Preview Lab → · Contrast checker → · Palette generator →

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