#1F23A8#1F23A8

#1F23A8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.0% C 0.203 H 269.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F23A8
RGBrgb(31, 35, 168)
HSLhsl(238, 69%, 39%)
HSVhsv(238, 82%, 66%)
CMYKcmyk(81.5%, 79.2%, 0%, 34.1%)
CIE-LABlab(24.70, 45.78, -69.94)
CIE-LCHlch(24.70, 83.59, 303.21°)
OKLaboklab(37.05% -0.0007 -0.2026)
OKLCHoklch(37.05% 0.203 269.8)
XYZxyz(8.2316, 4.3196, 37.4381)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F23A8 #A8A41F
analogous
#1F68A8 #1F23A8 #601FA8
triadic
#1F23A8 #A81F23 #23A81F
tetradic
#1F23A8 #A81F68 #A8A41F #1FA860
square
#1F23A8 #A81F68 #A8A41F #1FA860
split-complementary
#1F23A8 #A8601F #68A81F
monochromatic
#0C0D41 #151874 #1F23A8 #2C31D8 #6064E2

Accessibility & contrast

On white

11.26
#1F23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F23A8
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F23A8#FFFFFF#000000##FFFFFF
##1F23A81.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f23a8;
/* rgb */ color: rgb(31, 35, 168);
/* oklch */ color: oklch(37.0% 0.203 269.8);
Tailwind
colors: {
  custom: {
    50: '#7660c3',
    500: '#1f23a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f23a8;
$custom-light: #7660c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f23a8",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 238.248,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37049,
    "c": 0.20257,
    "h": 269.8
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#1F23A8
secondary
#C6C35D
accent
#E73CEC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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