#1F2272#1F2272

#1F2272 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.134 H 273.7°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#1F2272
RGBrgb(31, 34, 114)
HSLhsl(238, 57%, 28%)
HSVhsv(238, 73%, 45%)
CMYKcmyk(72.8%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.58, 27.33, -46.37)
CIE-LCHlch(18.58, 53.82, 300.51°)
OKLaboklab(30.94% 0.0087 -0.134)
OKLCHoklch(30.94% 0.134 273.7)
XYZxyz(4.1734, 2.6499, 16.2079)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2272 #726F1F
analogous
#1F4B72 #1F2272 #451F72
triadic
#1F2272 #721F22 #22721F
tetradic
#1F2272 #721F4B #726F1F #1F7245
square
#1F2272 #721F4B #726F1F #1F7245
split-complementary
#1F2272 #72451F #4B721F
monochromatic
#070718 #121442 #1F2272 #2C30A2 #4045CB

Accessibility & contrast

On white

13.73
#1F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2272
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2272#FFFFFF#000000##FFFFFF
##1F22721.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2272;
/* rgb */ color: rgb(31, 34, 114);
/* oklch */ color: oklch(30.9% 0.134 273.7);
Tailwind
colors: {
  custom: {
    50: '#685d9b',
    500: '#1f2272',
    950: '#000000',
  },
}
SCSS
$custom: #1f2272;
$custom-light: #685d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2272",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 237.831,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30939,
    "c": 0.13425,
    "h": 273.7
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#1F2272
secondary
#A6A247
accent
#DB47E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2272

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

Preview Lab → · Contrast checker → · Palette generator →

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