#1F227F#1F227F

#1F227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.152 H 272.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#1F227F
RGBrgb(31, 34, 127)
HSLhsl(238, 61%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(75.6%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.91, 32.14, -52.50)
CIE-LCHlch(19.91, 61.55, 301.47°)
OKLaboklab(32.3% 0.0069 -0.1519)
OKLCHoklch(32.3% 0.152 272.6)
XYZxyz(4.9666, 2.9672, 20.3855)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F227F #7F7C1F
analogous
#1F527F #1F227F #4C1F7F
triadic
#1F227F #7F1F22 #227F1F
tetradic
#1F227F #7F1F52 #7F7C1F #1F7F4C
square
#1F227F #7F1F52 #7F7C1F #1F7F4C
split-complementary
#1F227F #7F4C1F #527F1F
monochromatic
#07081D #13154E #1F227F #2B2FB0 #464BD2

Accessibility & contrast

On white

13.18
#1F227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F227F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F227F#FFFFFF#000000##FFFFFF
##1F227F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f227f;
/* rgb */ color: rgb(31, 34, 127);
/* oklch */ color: oklch(32.3% 0.152 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ea5',
    500: '#1f227f',
    950: '#000000',
  },
}
SCSS
$custom: #1f227f;
$custom-light: #6b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f227f",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 238.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.323,
    "c": 0.15203,
    "h": 272.6
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F227F

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

Preview Lab → · Contrast checker → · Palette generator →

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