#1F227D#1F227D

#1F227D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 272.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#1F227D
RGBrgb(31, 34, 125)
HSLhsl(238, 60%, 31%)
HSVhsv(238, 75%, 49%)
CMYKcmyk(75.2%, 72.8%, 0%, 51%)
CIE-LABlab(19.70, 31.41, -51.57)
CIE-LCHlch(19.70, 60.38, 301.34°)
OKLaboklab(32.09% 0.0072 -0.1492)
OKLCHoklch(32.09% 0.149 272.8)
XYZxyz(4.8375, 2.9155, 19.7059)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F227D #7D7A1F
analogous
#1F517D #1F227D #4B1F7D
triadic
#1F227D #7D1F22 #227D1F
tetradic
#1F227D #7D1F51 #7D7A1F #1F7D4B
square
#1F227D #7D1F51 #7D7A1F #1F7D4B
split-complementary
#1F227D #7D4B1F #517D1F
monochromatic
#07071B #13154C #1F227D #2B2FAE #454AD1

Accessibility & contrast

On white

13.26
#1F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F227D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F227D#FFFFFF#000000##FFFFFF
##1F227D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f227d;
/* rgb */ color: rgb(31, 34, 125);
/* oklch */ color: oklch(32.1% 0.149 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#1f227d',
    950: '#000000',
  },
}
SCSS
$custom: #1f227d;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f227d",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 238.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32087,
    "c": 0.14935,
    "h": 272.8
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#1F227D
secondary
#B0AD48
accent
#DE44E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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