#1F227E#1F227E

#1F227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 272.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1F227E
RGBrgb(31, 34, 126)
HSLhsl(238, 61%, 31%)
HSVhsv(238, 75%, 49%)
CMYKcmyk(75.4%, 73%, 0%, 50.6%)
CIE-LABlab(19.81, 31.77, -52.04)
CIE-LCHlch(19.81, 60.97, 301.41°)
OKLaboklab(32.19% 0.0071 -0.1505)
OKLCHoklch(32.19% 0.151 272.7)
XYZxyz(4.9017, 2.9412, 20.0440)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F227E #7E7B1F
analogous
#1F517E #1F227E #4B1F7E
triadic
#1F227E #7E1F22 #227E1F
tetradic
#1F227E #7E1F51 #7E7B1F #1F7E4B
square
#1F227E #7E1F51 #7E7B1F #1F7E4B
split-complementary
#1F227E #7E4B1F #517E1F
monochromatic
#07071C #13154D #1F227E #2B2FAF #464AD1

Accessibility & contrast

On white

13.22
#1F227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F227E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F227E#FFFFFF#000000##FFFFFF
##1F227E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f227e;
/* rgb */ color: rgb(31, 34, 126);
/* oklch */ color: oklch(32.2% 0.151 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#1f227e',
    950: '#000000',
  },
}
SCSS
$custom: #1f227e;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f227e",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 238.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32193,
    "c": 0.1507,
    "h": 272.7
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#1F227E
secondary
#B1AE48
accent
#DF44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F227E

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

Preview Lab → · Contrast checker → · Palette generator →

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