#1F23B3#1F23B3

#1F23B3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.215 H 269.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#1F23B3
RGBrgb(31, 35, 179)
HSLhsl(238, 70%, 41%)
HSVhsv(238, 83%, 70%)
CMYKcmyk(82.7%, 80.4%, 0%, 29.8%)
CIE-LABlab(26.00, 49.36, -74.39)
CIE-LCHlch(26.00, 89.28, 303.57°)
OKLaboklab(38.34% -0.0027 -0.2155)
OKLCHoklch(38.34% 0.215 269.3)
XYZxyz(9.3000, 4.7469, 43.0652)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F23B3 #B3AF1F
analogous
#1F6DB3 #1F23B3 #651FB3
triadic
#1F23B3 #B31F23 #23B31F
tetradic
#1F23B3 #B31F6D #B3AF1F #1FB365
square
#1F23B3 #B31F6D #B3AF1F #1FB365
split-complementary
#1F23B3 #B3651F #6DB31F
monochromatic
#0D0F4B #16197F #1F23B3 #3338DC #686BE5

Accessibility & contrast

On white

10.77
#1F23B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F23B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F23B3
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F23B3#FFFFFF#000000##FFFFFF
##1F23B31.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f23b3;
/* rgb */ color: rgb(31, 35, 179);
/* oklch */ color: oklch(38.3% 0.215 269.3);
Tailwind
colors: {
  custom: {
    50: '#7961cb',
    500: '#1f23b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f23b3;
$custom-light: #7961cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f23b3",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 179
  },
  "hsl": {
    "h": 238.378,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.21548,
    "h": 269.3
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#1F23B3
secondary
#CAC764
accent
#E83BED
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1F23B3

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

Preview Lab → · Contrast checker → · Palette generator →

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