#1F2274#1F2274

#1F2274 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.137 H 273.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2274
RGBrgb(31, 34, 116)
HSLhsl(238, 58%, 29%)
HSVhsv(238, 73%, 45%)
CMYKcmyk(73.3%, 70.7%, 0%, 54.5%)
CIE-LABlab(18.78, 28.08, -47.33)
CIE-LCHlch(18.78, 55.03, 300.68°)
OKLaboklab(31.14% 0.0084 -0.1368)
OKLCHoklch(31.14% 0.137 273.5)
XYZxyz(4.2884, 2.6959, 16.8140)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2274 #74711F
analogous
#1F4D74 #1F2274 #471F74
triadic
#1F2274 #741F22 #22741F
tetradic
#1F2274 #741F4D #74711F #1F7447
square
#1F2274 #741F4D #74711F #1F7447
split-complementary
#1F2274 #74471F #4D741F
monochromatic
#060718 #121444 #1F2274 #2C30A4 #4146CC

Accessibility & contrast

On white

13.64
#1F2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2274
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2274#FFFFFF#000000##FFFFFF
##1F22741.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2274;
/* rgb */ color: rgb(31, 34, 116);
/* oklch */ color: oklch(31.1% 0.137 273.5);
Tailwind
colors: {
  custom: {
    50: '#685d9d',
    500: '#1f2274',
    950: '#000000',
  },
}
SCSS
$custom: #1f2274;
$custom-light: #685d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2274",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 237.882,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31144,
    "c": 0.13704,
    "h": 273.5
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#1F2274
secondary
#A8A447
accent
#DC47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2274

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

Preview Lab → · Contrast checker → · Palette generator →

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