#1F226C#1F226C

#1F226C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.126 H 274.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#1F226C
RGBrgb(31, 34, 108)
HSLhsl(238, 55%, 27%)
HSVhsv(238, 71%, 42%)
CMYKcmyk(71.3%, 68.5%, 0%, 57.6%)
CIE-LABlab(18.00, 25.07, -43.44)
CIE-LCHlch(18.00, 50.15, 299.99°)
OKLaboklab(30.33% 0.0093 -0.1254)
OKLCHoklch(30.33% 0.126 274.2)
XYZxyz(3.8430, 2.5177, 14.4679)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F226C #6C691F
analogous
#1F496C #1F226C #421F6C
triadic
#1F226C #6C1F22 #226C1F
tetradic
#1F226C #6C1F49 #6C691F #1F6C42
square
#1F226C #6C1F49 #6C691F #1F6C42
split-complementary
#1F226C #6C421F #496C1F
monochromatic
#070718 #11133C #1F226C #2D319C #3E43C8

Accessibility & contrast

On white

13.97
#1F226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F226C
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F226C#FFFFFF#000000##FFFFFF
##1F226C1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f226c;
/* rgb */ color: rgb(31, 34, 108);
/* oklch */ color: oklch(30.3% 0.126 274.2);
Tailwind
colors: {
  custom: {
    50: '#665d97',
    500: '#1f226c',
    950: '#000000',
  },
}
SCSS
$custom: #1f226c;
$custom-light: #665d97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f226c",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 237.662,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.12573,
    "h": 274.2
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#1F226C
secondary
#A09D47
accent
#D949DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F226C

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

Preview Lab → · Contrast checker → · Palette generator →

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