#242F9C#242F9C

#242F9C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.174 H 270.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#242F9C
RGBrgb(36, 47, 156)
HSLhsl(235, 63%, 38%)
HSVhsv(235, 77%, 61%)
CMYKcmyk(76.9%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.18, 34.94, -60.20)
CIE-LCHlch(26.18, 69.61, 300.13°)
OKLaboklab(37.79% 0.0016 -0.1742)
OKLCHoklch(37.79% 0.174 270.5)
XYZxyz(7.7428, 4.8076, 31.9659)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F9C #9C9124
analogous
#246B9C #242F9C #55249C
triadic
#242F9C #9C242F #2F9C24
tetradic
#242F9C #9C246B #9C9124 #249C55
square
#242F9C #9C246B #9C9124 #249C55
split-complementary
#242F9C #9C5524 #6B9C24
monochromatic
#0D1139 #19206A #242F9C #2F3ECE #606BDA

Accessibility & contrast

On white

10.71
#242F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#242F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F9C
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F9C#FFFFFF#000000##FFFFFF
##242F9C1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242f9c;
/* rgb */ color: rgb(36, 47, 156);
/* oklch */ color: oklch(37.8% 0.174 270.5);
Tailwind
colors: {
  custom: {
    50: '#7368ba',
    500: '#242f9c',
    950: '#000000',
  },
}
SCSS
$custom: #242f9c;
$custom-light: #7368ba;
$custom-dark: #000000;
JSON
{
  "hex": "#242f9c",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 234.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37788,
    "c": 0.17425,
    "h": 270.5
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#242F9C
secondary
#BFB65C
accent
#D742E6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #242F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#242F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva