#1F227A#1F227A

#1F227A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.145 H 273.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1F227A
RGBrgb(31, 34, 122)
HSLhsl(238, 59%, 30%)
HSVhsv(238, 75%, 48%)
CMYKcmyk(74.6%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.39, 30.30, -50.17)
CIE-LCHlch(19.39, 58.62, 301.13°)
OKLaboklab(31.77% 0.0076 -0.1451)
OKLCHoklch(31.77% 0.145 273)
XYZxyz(4.6488, 2.8400, 18.7118)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F227A #7A771F
analogous
#1F4F7A #1F227A #4A1F7A
triadic
#1F227A #7A1F22 #227A1F
tetradic
#1F227A #7A1F4F #7A771F #1F7A4A
square
#1F227A #7A1F4F #7A771F #1F7A4A
split-complementary
#1F227A #7A4A1F #4F7A1F
monochromatic
#060718 #131449 #1F227A #2B30AB #4449CF

Accessibility & contrast

On white

13.39
#1F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F227A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F227A#FFFFFF#000000##FFFFFF
##1F227A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f227a;
/* rgb */ color: rgb(31, 34, 122);
/* oklch */ color: oklch(31.8% 0.145 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#1f227a',
    950: '#000000',
  },
}
SCSS
$custom: #1f227a;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f227a",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 238.022,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31769,
    "c": 0.14529,
    "h": 273
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#1F227A
secondary
#ADAA47
accent
#DD45E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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